Sama,
I thought I'd direct this question to you or Brian since you are both familiar with our apps.
As you know, we have multiple tabs per app. Each tab contains the same columns. When we want to add, change or delete the tab's column content (or add a new tab), we must go into each app's columns and make the change.
I was thinking about how I could "COPY" in the columns' config, options, etc (see example below)
}, {
header : "<b>Actual sales<br/>This year<br/>April</b>",
sortable : true,
width : 100,
align : 'right',
dataIndex : 'Q0016',
type : 'dollar',
renderer : this.renderDollarNumerics
}, {
header : "<b>Actual sales<br/>This year<br/>May</b>",
sortable : true,
width : 100,
align : 'right',
type : 'dollar',
dataIndex : 'Q0017',
renderer : this.renderDollarNumerics
} {
Can I put these into a .js or something so when I needed to change the width of a column or hidden config, etc globally I could just change it in one place and effect all apps using that column?
I'm going to try and sound intelligent here (nobody laugh, please!). Could I create each column as an object? That way I could give each one default values (which would be used 90% of the time) and override some config option as needed? If this is possible, please give detailed instructions.
Thanks...
I thought I'd direct this question to you or Brian since you are both familiar with our apps.
As you know, we have multiple tabs per app. Each tab contains the same columns. When we want to add, change or delete the tab's column content (or add a new tab), we must go into each app's columns and make the change.
I was thinking about how I could "COPY" in the columns' config, options, etc (see example below)
}, {
header : "<b>Actual sales<br/>This year<br/>April</b>",
sortable : true,
width : 100,
align : 'right',
dataIndex : 'Q0016',
type : 'dollar',
renderer : this.renderDollarNumerics
}, {
header : "<b>Actual sales<br/>This year<br/>May</b>",
sortable : true,
width : 100,
align : 'right',
type : 'dollar',
dataIndex : 'Q0017',
renderer : this.renderDollarNumerics
} {
Can I put these into a .js or something so when I needed to change the width of a column or hidden config, etc globally I could just change it in one place and effect all apps using that column?
I'm going to try and sound intelligent here (nobody laugh, please!). Could I create each column as an object? That way I could give each one default values (which would be used 90% of the time) and override some config option as needed? If this is possible, please give detailed instructions.
Thanks...
Comment