stateId: 'ceph-status-warnings',
viewConfig: {
enableTextSelection: true,
+ listeners: {
+ collapsebody: function(rowNode, record) {
+ record.set('expanded', false);
+ record.commit();
+ },
+ expandbody: function(rowNode, record) {
+ record.set('expanded', true);
+ record.commit();
+ },
+ },
},
// we load the store manually, to show an emptyText specify an empty intermediate store
store: {
{
dataIndex: 'summary',
header: gettext('Summary'),
+ renderer: function(value, metaData, record, rI, cI, store, view) {
+ if (record.get('expanded')) {
+ metaData.tdCls = 'pmx-column-wrapped';
+ }
+ return value;
+ },
flex: 1,
},
{