File tree Expand file tree Collapse file tree
examples/grid/nestedRecordFields Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ class MainContainer extends Viewport {
3333 module : GridContainer ,
3434 bind : { store : 'stores.mainStore' } ,
3535
36+ columnDefaults : {
37+ width : 200
38+ } ,
39+
3640 columns : [
3741 { dataField : 'user.firstname' , text : 'Firstname' } ,
3842 { dataField : 'user.lastname' , text : 'Lastname' } ,
@@ -96,15 +100,15 @@ class MainContainer extends Viewport {
96100 /**
97101 * @param {Object } data
98102 */
99- editRenderer ( { column, index , record , tableContainer } ) {
103+ editRenderer ( { column, gridContainer , index , record } ) {
100104 let me = this ,
101105 { appName, windowId} = me ,
102106 widgetId = `${ column . id } -widget-${ index } ` ,
103107 button = ( column . widgetMap || ( column . widgetMap = { } ) ) [ widgetId ] || ( column . widgetMap [ widgetId ] = Neo . create ( {
104108 module : Button ,
105109 appName,
106110 handler : 'up.editButtonHandler' ,
107- parentId : tableContainer . id ,
111+ parentId : gridContainer . id ,
108112 record,
109113 text : 'Edit' ,
110114 windowId
You can’t perform that action at this time.
0 commit comments