[TYPO3-dev] Toggling checkboxes with ExtJS

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


Steffen Kamper schrieb:
> Hi,
> 
> Francois Suter schrieb:
>> Hi,
>>
>>> You could simple access the underlying DOM element.
>>>
>>> Ext.select('.checkboxes').each( function(){ this.dom.checked = true } );
>>
>> That works. Beautiful, thanks!
>>
> 
> yes. Always if you do a select with ExtJs it's a component after.

No, it's an Ext.Element!

> The dom is always accessible with component.dom


No. Ext.Component has "el" to get the underlying Ext.Element and
Ext.Element has "dom" to get to the DOM node.

eg.
var cb = new Ext.form.Checkbox()
cb.render();
domNode = cb.el.dom;

Masi




More information about the TYPO3-dev mailing list