[TYPO3-dev] Toggling checkboxes with ExtJS

Martin Kutschker masi-no at spam-typo3.org
Fri Jun 12 14:20:56 CEST 2009


Francois Suter schrieb:
> Hi all,
> 
> Working on the Scheduler's BE module, I need to manipulate checkboxes,
> i.e. there's one "master" checkbox in a list and clicking on it checks
> or unchecks all checkboxes in the list.
> 
> How can I achieve that with ExtJS? I select my checkboxes using:
> 
> Ext.select('.checkboxes')
> 
> and then what?

// untested
Ext.select('.checkboxes').each( function(){ this.setValue(true) } );

See docs for Ext.CompositeElementLite and Ext.form.Checkbox.

Masi




More information about the TYPO3-dev mailing list