Javascript-форум (https://javascript.ru/forum/)
-   ExtJS (https://javascript.ru/forum/extjs/)
-   -   Проблема с checkbox (https://javascript.ru/forum/extjs/74194-problema-s-checkbox.html)

weirdjava 20.06.2018 16:02

Проблема с 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:

weirdjava 20.06.2018 16:58

xtype: 'checkbox',
name: 'rel',
fieldLabel: 'Released',
trueText: 'Yes',
falseText: 'No',
uncheckedValue: 'No',
inputValue: 'Yes'


Часовой пояс GMT +3, время: 02:40.