Vue-multiselect: [Feature request] "Always open" mode for more flexible use of multiselect

Created on 21 Jul 2017  路  15Comments  路  Source: shentao/vue-multiselect

externalcall

In one of the UI's I'm implementing the requirement is for a button to open a popover with multiselect-type options.

I think having an alwaysOpen prop would open multiselect for more flexible use cases like this one. Sometimes there is a need to control multiselect dropdown visibility externally rather than only rely on search input focus and I think this kind of prop multiplies what can be done with multiselect.

I've had to do it in my fork and it's relatively easy with few additions. Would you consider adding this into the core ?

3.0 enhancement

Most helpful comment

This will be possible in the 3.0 release. Please be patient.

when is 3.0 release scheduled?

All 15 comments

Hi. Adding yet another configuration option is something to think about. We will let you know next week

Hi. I am actually developing the same behaviour and i want to know if it's possible to add a prop to update isOpen data value ?

+1 for this feature. inline mode some times better than dropdown for usability and so on.

Default html select tag with multiple attribute is inline, will be good to have same feature in vue-multiselect.

+1 for this one!

would like this as well.. a way to have it always expanded but with a fixed height and scrollable pane if content exceeds the height

+1

This will be possible in the 3.0 release. Please be patient.

This will be possible in the 3.0 release. Please be patient.

when is 3.0 release scheduled?

Would love it, when is 3.0?

+1

Any updates (or workarounds) here?

Any way to achieve this currently with v2? Also, is this option available as part of the v3 branch currently? @shentao ?

This is something else I am looking to do, I have very similar requirements as @yk1711. If this is still in development, how did you manage to get it working @yk1711?

@doutatsu As a workaround, to have the multiselect open by default, you can set a ref on the multiselect component and call the activate method on the ref element.
For example, assign a ref to the component

<multiselect
      ref="your_ref_name"
.....
/>

and then call the activate method by
this.$refs["your_ref_name"].activate();

:close-on-select="false"
:clear-on-select="false"
ref="multiselect" @close="closeEventHandler"

.....
/>
mounted(){
this.$refs.multiselect.isOpen = ture;
}
closeEventHandler(){
this.$refs.multiselect.isOpen = ture;
}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreasvirkus picture andreasvirkus  路  3Comments

stefanheimann picture stefanheimann  路  4Comments

volkanciloglu picture volkanciloglu  路  3Comments

wujekbogdan picture wujekbogdan  路  4Comments

focussing picture focussing  路  3Comments