set the width of select2 input (through Angular-ui directive)

前端 未结 12 1757
名媛妹妹
名媛妹妹 2020-12-22 20:14

I have problem making this plunkr (select2 + angulat-ui) work.

http://plnkr.co/edit/NkdWUO?p=preview

In local setup, I get the select2 work, but I cannot set

12条回答
  •  天涯浪人
    2020-12-22 21:02

    With > 4.0 of select2 I am using

    $("select").select2({
      dropdownAutoWidth: true
    });
    

    These others did not work:

    • dropdownCssClass: 'bigdrop'
    • width: '100%'
    • width: 'resolve'

提交回复
热议问题