Help - Create Collapse/Expand dropdown based toolbox popup

39 views
Skip to first unread message

Naresh Chaudhari

unread,
Apr 20, 2021, 4:51:51 AM4/20/21
to Blockly
Hi @All, I need some help to create a Collapse/Expandable dropdown for Subcategories in Toolbox.
Problem Statements:  I have Helper categories inside category I have differentiated sub-categories using Label. (ex. Diameter Helper) Each sub-category has around 50+ blocks. and if there are 5 subcategories then the block will be around 250 blocks. If there are 10 Sub-categories then there will be 500 blocks. If I want the block from the 10th category then I need to scroll more. So to avoid scroll I want to minimize above each block and can go directly 10th sub-category. So I want to place a collapse/Expandable facility for each sub-category. If I minimize all sub categories then I will see only sub category title . How it is possible? Scrolling everytime I felt very lazy and it is not preferable.

Hope there will be an inbuilt SCC/class are available in the Blockly library.

Capture.PNG

Abby Schmiedt

unread,
Apr 20, 2021, 8:39:33 PM4/20/21
to Blockly
Hello!

So it looks like you are creating your own kind of sub category in the flyout using labels. However, I wonder if using our built in sub categories would solve your problem? This playground has an example of a toolbox with sub categories. 

Let me know what you think!
Abby
Reply all
Reply to author
Forward
0 new messages