LesJ
14 Aug 2017, 8:51 AM
The Observable addListener (https://docs.sencha.com/extjs/6.5.1/classic/Ext.mixin.Observable.html#method-addListener)delegate option documentation is not very clear.
The delegate option doc states:
"The "delegate" option is only available on Ext.dom.Element instances (or when attaching a listener to a Ext.dom.Element via a Component using the element option)."
I see code like this where the delegate option is applied to a component, not an Ext.dom.Element instance.
me.on({
beforeactivetabchange: 'doTabChange',
delegate: '> tabbar',
scope : me
});
me.on({
disabledchange: 'onItemDisabledChange',
delegate: '> component',
scope : me
});
The next documentation line reads:
"See the delegate example below."
However, there's no delegate example below.
The delegate option doc states:
"The "delegate" option is only available on Ext.dom.Element instances (or when attaching a listener to a Ext.dom.Element via a Component using the element option)."
I see code like this where the delegate option is applied to a component, not an Ext.dom.Element instance.
me.on({
beforeactivetabchange: 'doTabChange',
delegate: '> tabbar',
scope : me
});
me.on({
disabledchange: 'onItemDisabledChange',
delegate: '> component',
scope : me
});
The next documentation line reads:
"See the delegate example below."
However, there's no delegate example below.