javascript - Scroll event on ExtJS combobox picker -


i want add handler scroll event on combobox's picker scroll, scroll event not fired.

    ext.define('test.mycombo', {         extend:'ext.form.field.combobox',         createpicker: function() {             var me = this,                 picker = me.callparent(arguments);             me.mon(picker, {                 'afterrender' : function() {                     picker.gettargetel().on('scroll', function(){                         console.log('scroll?');                     }, me);                 },                 scope: me             });             return picker;         },     }); 

you should listen on picker instead of targetel.

ext.define('test.mycombo', {         extend:'ext.form.field.combobox',         createpicker: function() {             var me = this,                 picker = me.callparent(arguments);               picker.on('scroll', function(){                  console.log('scroll?');              }              return picker;         },     }); 

here fiddle https://fiddle.sencha.com/#fiddle/17bb


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -