pro_imaj Posted January 12, 2017 Share Posted January 12, 2017 Merhaba; 1-UniMenuButton fontunu ayarladığımda bu sadece buton için geçerli oluyor halbuki açılan listeninde bu fonta göre açılmasını istiyorum bunu nasıl yapabilirim. 2-Bununla birlikte MenuButton tıklandığında listenin açılmasını nasıl sağlarım. Teşekkürler. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 12, 2017 Author Share Posted January 12, 2017 İkinci sorunun cevabı; UniMenuButton1->ClientEvents->ExtEvents (Click) function click(sender, e, eOpts) { sender.maybeShowMenu() } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 12, 2017 Share Posted January 12, 2017 1-UniMenuButton fontunu ayarladığımda bu sadece buton için geçerli oluyor halbuki açılan listeninde bu fonta göre açılmasını istiyorum bunu nasıl yapabilirim. Merhaba, Belki bu metod...: 1. UniServerModule -> CustomCSS: .x-mymenu-item-text .x-menu-item-text { color: green; font-size: 12px; line-height: 24px; font-family: Arial, Helvetica, sans-serif; font-weight: bold } 2. UniMenuButton1 -> ClientEvents -> ExtEvents -> function afterrender: function afterrender(sender, eOpts) { var me=sender; var _addCls = function (item) { item.forEach(function (_item) { _item.addCls('x-mymenu-item-text'); if (_item.menu) { _addCls(_item.menu.items.items) } }) }; me.addListener('menushow', Ext.defer(function () { if (me.menu) { _addCls(me.menu.items.items); } }, 100) ); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.