Multiple Select - Increase size - number of options displayed
Multiple Select - Increase size - number of options displayed
peterbrowne
Posts: 314Questions: 54Answers: 0
in Editor
How can the number of options displayed in a multi select be increased from the default of 4?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
{
label: "Presentations:",
name: "presentation[].presentation_pk",
type: "select",
placeholder: 'No selection',
placeholderDisabled: false,
placeholderValue: 0,
multiple: true
}
The element is a div with class DTE_Field_Input, not a <select> so not sure how to achieve this...
should do it.
Allan
That CSS just seems to make normal selects higher, but no effect on multi select. I just want to have the number options visible in multi selects to be more than 4.
Also tried the following but not working:
5em was perhaps a poor choice on my part since that's more or less what the default height of the multi-select is in browsers. Change it to 10em and you'll see the difference.
Example: http://live.datatables.net/nuvihosi/40/edit
Allan
Thanks Allan, that works fine including selector specific to select with type 'multiple'