Select2: How to use dropdownParent in v4 ?

Created on 26 Jun 2015  路  3Comments  路  Source: select2/select2

Hi, I'm trying to implement select2, and I noticed the following options: dropdownParent
https://select2.github.io/options.html#dropdown
Actually, I'd like to attach the dropdown to my container, but I can't figure out how to use parameters explained in the documentation (AttachContainer this one in particular)
I truly hope that one of you have already encountered this issue, and would be willing to help me on this one ;)

Edit: it seems to be a related issue here: https://github.com/select2/select2/issues/3239

4.x documentation

Most helpful comment

Yes please, can we get some example code, or could you add an option to the js like "dropdownParent: 'inside'" that places the dropdown inside the container?? I'm not much of a super developer, so clearer instructions (jQuery preferably) would be helpful (i have no idea how to use adapter and decorate). Thanks!

All 3 comments

These two links had been quite useful for me to understand how to use Select2 several options

http://jsbin.com/gawosemice/edit?html,js,output
https://gist.github.com/timkelty/ae79d180acc9d3054e02

Yes please, can we get some example code, or could you add an option to the js like "dropdownParent: 'inside'" that places the dropdown inside the container?? I'm not much of a super developer, so clearer instructions (jQuery preferably) would be helpful (i have no idea how to use adapter and decorate). Thanks!

exactly. It's even documented, but cannot be used. So why?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

actricom picture actricom  路  3Comments

e-frank picture e-frank  路  3Comments

ghost picture ghost  路  3Comments

JuanWilde picture JuanWilde  路  3Comments

sanderhahn picture sanderhahn  路  4Comments