javascript - Display multiple columns in Select2 -


i'm using select2 , i'd show multicolum table drop down, need width of drop down container have different (larger) width input itself

is possible that?

moreover i'd show table several columns. movies example, saw in formatresult function create new table each row.

would possible include every row in same table, every cells has same width? need set template contain rows or that.

what want achieve small input show code of entity, , large dropdown show several more columns

--

here's related issue on github: https://github.com/ivaynberg/select2/issues/1314

i haven't had success yet having fixed header row above columns act typical table header row, in terms of getting columns out there, referred this feature request on github user trebuchetty alludes using bootstrap's grid styles col-md-6 (bootstrap versions >= 3).

i tried following in select2 options , seems give results:

formatresult: function(result) {     return '<div class="row">' +            '<div class="col-md-6">' + result.name + '</div>' +            '<div class="col-md-6">' + result.manager + '</div>' +            '</div>'; }, 

result in above reference element in array of items displayed in dropdown


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -