Skip to content

Commit ab641b9

Browse files
committed
#6286 examples.grid.nestedRecordFields.MainContainer: column default width
1 parent 00fe7aa commit ab641b9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/grid/nestedRecordFields/MainContainer.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)