This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) Define the custom filter | |
me.approvedFilter = Ext.create('Ext.util.Filter', { | |
id: 'approvedFilter', | |
filterFn: function (record) { | |
return !record.data.approved; | |
} | |
}); | |
(2) In the grid panel, define the checkbox in the toolbar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) Define the custom filter | |
me.activeFilter = Ext.create('Ext.util.Filter', { | |
id: 'activeFilter', | |
property: 'onlyActive', | |
value: true | |
}); | |
(2) In the grid panel, define the checkbox in the toolbar | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renderer: function (value, metaData, record, rowIndex, colIndex, store) { | |
metaData.tdAttr = 'data-qtip="' + value + '"'; | |
return value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
xtype: 'checkcolumn', | |
text: 'Approved' + '<img class="helpbtn" helpmsg="Check this field to approve the record" src="' + ROOT_URL + 'resources/img/information.png" />', | |
dataIndex: 'approved', | |
stateId: 'approved', | |
hideable: false, | |
width: 75 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROOT_URL = location.href.substr(0, location.href.lastIndexOf("/") + 1); |