Multiselect in dropdown

358 views
Skip to first unread message

vantest...@gmail.com

unread,
May 5, 2017, 10:41:22 AM5/5/17
to Blockly
Hi

Is it possible to have multiselect in a dropdown menu?

Thanks,
Walter

Andrew n marshall

unread,
May 5, 2017, 1:47:54 PM5/5/17
to blo...@googlegroups.com
Sorry, this is not possible. The way fields are supported in blocks requires that they have one value. (And a dropdown probably isn't the best choice for multiple selection, anyway.)

It's possibly to use a mutator to dynamically add additional fields (and probably container dummy inputs). Consider how controls_if and lists_create_with can be expanded. It is also possible (but not demo'd anywhere) to drive these mutation from onChange events or FieldImage onClick events.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages