Disabling options in a dropdown

148 views
Skip to first unread message

prashant...@gmail.com

unread,
Nov 30, 2018, 9:39:53 AM11/30/18
to Blockly
Hi,

I have a dropdown field with 3 options.  Once user selects first option, it should be grayed out. I see some discussions in a 2016 thread where they say it is not possible.
Is there any way to do it?  I could not find the disabling options in the reference.Let me know a way to solve this or point me to documentation. 
Thanks

Andrew n marshall

unread,
Nov 30, 2018, 4:08:30 PM11/30/18
to blo...@googlegroups.com
Our dropdown menu do not have the concept of disabled items. We wouldn't be against guiding a pull request for the feature, if you wanted to implement it.

That said, the dropdowns are one of the areas that will likely go through significant churn in the coming months as it is one of the last uses of the closure library, which we are slowly removing our dependency on.



--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages