glu.defModel('demo.Column', {
xtype: 'gridcolumn',
header: 'Foo',
dataIndex: 'something',
renderer: function (v) { return v; }
});
glu.defModel('demo.MahGrid', {
columns: {
mtype: 'list'
},
init: function () {
this.columns.add(this.model('Column'));
}
});
glu.defView('demo.Column', {
xtype: '@{xtype}',
header: '@{header}',
dataIndex: '@{dataIndex}',
renderer: '@{renderer}'
});
glu.defView('demo.MahGrid', {
xtype: 'grid',
columns: '@{columns}'
});
// Private. Determine if there are any columns with a locked configuration option
hasLockedColumns: function(columns) {
var i,
len,
column;
// In case they specified a config object with items...
if (Ext.isObject(columns)) {
columns = columns.items;
}
for (i = 0, len = columns.length; i < len; i++) {
column = columns[i];
if (!column.processed && column.locked) {
return true;
}
}
},
To view this discussion on the web visit https://groups.google.com/d/msgid/glujs/55d940d7-1c90-4b5b-b8a3-e933df6a3978%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "GluJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glujs+un...@googlegroups.com.
To post to this group, send email to gl...@googlegroups.com.
Sweet! Thanks! I'll try that first thing when I get to work tomorrow.
To view this discussion on the web visit https://groups.google.com/d/msgid/glujs/CAMT%2BkPtqVvCpn7pw5ZS8Ddpn3GOkCZgAJ5guGHvbv-c5eineug%40mail.gmail.com.
Sweet! Thanks! I'll try that first thing when I get to work tomorrow.
To unsubscribe from this group and stop receiving emails from it, send an email to glujs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glujs/55d940d7-1c90-4b5b-b8a3-e933df6a3978%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GluJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glujs+unsubscribe@googlegroups.com.