SplitButton.js 686 B

123456789101112131415161718192021222324252627282930313233
  1. Ext.define('Ext.theme.material.SplitButton', {
  2. override: 'Ext.SplitButton',
  3. /**
  4. * @private
  5. * @cfg {Number/Boolean} menuShowDelay
  6. * The amount of delay between the `tap` or `onClick` and the moment the
  7. * split menu button shows the menu.
  8. */
  9. config: {
  10. splitRipple: {
  11. delegate: '.x-splitInner-el'
  12. },
  13. arrowRipple: {
  14. delegate: '.x-splitArrow-el'
  15. }
  16. },
  17. menuShowDelay: 0,
  18. doDestroy: function() {
  19. var me = this;
  20. if (me.hasOwnProperty('menuShowTimeout')) {
  21. Ext.undefer(me.menuShowTimeout);
  22. }
  23. me.callParent();
  24. }
  25. });