This generic hook function is called whenever a grid grob is edited via grid.edit or editGrob. This provides an opportunity for customising the editing of a new class derived from grob (or gTree).
这种通用的钩子函数被称为每当网格的GROB是通过grid.edit或editGrob编辑。这提供了一个机会,从GROB(或gTree)派生一个新类的编辑定制。
用法----------Usage----------
editDetails(x, specs)
参数----------Arguments----------
参数:x
A grid grob.
网格GROB。
参数:specs
A list of named elements. The names indicate the grob slots to modify and the values are the new values for the slots.
命名的元素的列表。名称表明GROB槽修改的值是新值的插槽。
Details
详情----------Details----------
This function is called by grid.edit and editGrob. A method should be written for classes derived from grob or gTree if a change in a slot has an effect on other slots in the grob or children of a gTree (e.g., see grid:::editDetails.xaxis).
此功能被称为grid.edit和editGrob。 GROB或gTree从派生类的方法应书面如果在一个槽的变化有的GROB或gTree一个的孩子上其他插槽的效果(例如,见grid:::editDetails.xaxis)。
Note that the slot already has the new value.
需要注意的是槽已经有新的价值。
值----------Value----------
The function MUST return the modified grob.
该函数必须返回修改后的格罗。