vendredi 2 juin 2017

Always one checkbox checked = true

i am have 4 checkbox:

            {
                xtype: 'panel',
                layout: 'vbox',
                border: 1,
                defaults: { xtype: 'checkbox', anchor: '100%', margin: '2 0 2 2' },
                items: [
                    { bind: { value: '{allObj.goods}' } },
                    { bind: { value: '{allObj.names}' } },
                    { bind: { value: '{allObj.fires}' } },
                    { bind: { value: '{allObj.counts}' } }
                ]
            },

And i am want next: if only one checkbox be:

checked = true

and other:

checked = false

, disable this checkbox for checked = false.




Aucun commentaire:

Enregistrer un commentaire