18 lines
347 B
JavaScript
18 lines
347 B
JavaScript
// boolean type including 'Default' (delete property from file)
|
|
Ext.define('PVE.form.Boolean', {
|
|
extend: 'PVE.form.KVComboBox',
|
|
alias: ['widget.booleanfield'],
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
me.data = [
|
|
['', gettext('Default')],
|
|
[1, gettext('Yes')],
|
|
[0, gettext('No')]
|
|
];
|
|
|
|
me.callParent();
|
|
}
|
|
});
|