How to apply multiple jQuery UI themes

后端 未结 3 1885
余生分开走
余生分开走 2020-12-28 17:56

Does anyone have any techniques/tips/tricks to help me organize and implement multiple jQuery UI themes in one application?

I have resulted to using

3条回答
  •  -上瘾入骨i
    2020-12-28 18:16

    you will have some issues if you apply this technique to ui widgets that overlay and are appended to the body - dialog, datepicker, autocomplete....

    in the case of autocomplete, you can do the following to get a parent element with the scoped class - adding the scopped class to the UL of the autocomplete itself is not enough.

    jQuery('.autocomplete').autocomplete({
        source: function(request, response){
            {....}
        },
        create: function(event, ui) {
            jQuery('.ui-autocomplete').wrap('');
        }
    });
    

提交回复
热议问题