EasyUI Forum
May 21, 2024, 06:04:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: about combobox when disabled CSS  (Read 7838 times)
hxl_apple
Newbie
*
Posts: 4


View Profile Email
« on: September 28, 2014, 07:11:07 PM »

the combobox plugin when disabled, the arrow on mouse over ,it's backgrond changed.

How add new css class to combobox when disabled ?
Logged
hxl_apple
Newbie
*
Posts: 4


View Profile Email
« Reply #1 on: September 28, 2014, 07:48:48 PM »

 var plugins = [
        'combo','combobox','combotree','combogrid','datebox','datetimebox',
        'datetimespinner','numberbox','numberspinner','timespinner','filebox',
        'searchbox','textbox'
    ];

    (function(ctrls){
        $.each(ctrls,function() {
            $.extend($.fn[this].defaults,{
                height:26,
                iconWidth:20
            });

            var disableFn = $.fn[this].methods.disable;
            if(disableFn){
                $.extend($.fn[this].methods,{
                    disable: function(jq){
                        disableFn(jq);
                        $(jq).next().addClass('aaaaa');
                    }
                });
            }
        });
    })(plugins);

   
  //=============================





Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!