CuppaLabs / angular2-multiselect-dropdown

Angular 2 Dropdown Multiselect
https://cuppalabs.github.io/angular2-multiselect-dropdown
MIT License
298 stars 256 forks source link

Custom trigger button #339

Open jenpope opened 5 years ago

jenpope commented 5 years ago

Is it possible to do a custom trigger for multiselect (i.e., have a button trigger the dropdown)?

Similar to "Custom trigger element using transclusion" from here?

http://dotansimha.github.io/angularjs-dropdown-multiselect/docs/#/main

CuppaLabs commented 5 years ago

Yes, we have this feature. Refer to demo examples. Methods example section for this. Let me know if this helps.

On Wed, 16 Jan 2019, 10:03 J <notifications@github.com wrote:

Is it possible to do a custom trigger for multiselect (i.e., have a button trigger the dropdown)?

Similar to "Custom trigger element using transclusion" from here?

http://dotansimha.github.io/angularjs-dropdown-multiselect/docs/#/main

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CuppaLabs/angular2-multiselect-dropdown/issues/339, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxjoP-WXxnY-YNs2MXviPyKxb_BOoqgks5vDquhgaJpZM4aCS_M .

jenpope commented 5 years ago

Thank you! What is the remote trigger call?

I saw the open button, but did not see what the method being called was.

https://cuppalabs.github.io/angular2-multiselect-dropdown/#/dropdownMethods

Also, is it possible to hide the select field entirely and just have the dropdown body show up under the trigger button? Like this?

https://i.stack.imgur.com/DNJMY.png

seriousjelly commented 5 years ago

+1

Documentation needs updating to show method calls for Open/Close. Current example only shows reset functionality.

CuppaLabs commented 5 years ago

please empty your browser cache and check example https://cuppalabs.github.io/angular2-multiselect-dropdown/#/dropdownMethods

image

seriousjelly commented 5 years ago

Still doesn't show you how to implement the 'Open' button in the code example on that page.

EduardRakov commented 5 years ago

@chrisbratherton @jenpope see here https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/master/src/app/examples/resetdropdown.ts

@CuppaLabs the docs really should be updated

chathura-ranasingha commented 5 years ago

@chrisbratherton @jenpope see here https://github.com/CuppaLabs/angular2-multiselect-dropdown/blob/master/src/app/examples/resetdropdown.ts

@CuppaLabs the docs really should be updated

is this really work? this.dropdownElem.openDropdown(); openDropdown() is not available