Проблема с checkbox
Всем привет!
Только начал розбираться с extjs .Не получаеться втулить checkbox. Точнее не получаеться сделать так, чтобы когда менял чекбокс вместо true/false было yes/no.
Ext.define('TechZoo.view.BooksForm', {
extend : 'Ext.window.Window',
alias : 'widget.booksform',
title : 'Add Book',
width : 350,
layout : 'fit',
resizable: false,
closeAction: 'hide',
modal : true,
config : {
recordIndex : 0,
action : ''
},
items : [{
xtype : 'form',
layout: 'anchor',
bodyStyle: {
background: 'none',
padding: '10px',
border: '0'
},
defaults: {
anchor: '100%'
},
items : [{
xtype : 'textfield',
name : 'title',
fieldLabel: 'Book Title'
},{
xtype : 'textfield',
name: 'author',
fieldLabel: 'Author Name'
},{
xtype : 'textfield',
name: 'price',
fieldLabel: 'Price'
},{
xtype : 'checkbox',
name: 'rel',
fieldLabel: 'Released',
}]
}],
}
}]
});
:help: :help: :help: :help: :help: :help: :help: :help: :help: :cray: :cray: :cray: |
xtype: 'checkbox',
name: 'rel', fieldLabel: 'Released', trueText: 'Yes', falseText: 'No', uncheckedValue: 'No', inputValue: 'Yes' |
| Часовой пояс GMT +3, время: 06:26. |