Item.js 604 B

12345678910111213141516171819
  1. Ext.define('Ext.theme.material.menu.Item', {
  2. override: 'Ext.menu.Item',
  3. config: {
  4. ripple: {
  5. delegate: '.' + Ext.baseCSSPrefix + 'body-el'
  6. }
  7. },
  8. shouldRipple: function() {
  9. var me = this,
  10. rippleDelay = me.el.rippleShowTimeout;
  11. //To delay menu hide(closing of menu) after menu item is clicked. RippleDelayis used to show ripple effect on menu items. Max(clickHideDelay,rippleDelay) should be used
  12. me.clickHideDelay = me.clickHideDelay > rippleDelay ? me.clickHideDelay : rippleDelay;
  13. return this.getRipple();
  14. }
  15. });