How to hide or remove blocks

965 views
Skip to first unread message

mehmet sinoplu

unread,
Aug 21, 2015, 2:35:53 AM8/21/15
to Blockly
I wanto to hide or remove some blocks. For example how can i hide or remove below block in Text section? I couldn't do it.
 




Also I want to remove colour tab because I don't use it. How can i do that?

Avi

unread,
Aug 21, 2015, 2:47:32 AM8/21/15
to Blockly
Looks like you do not want specific items in the toolbox, and want to remove the color category.
Please take a look at https://developers.google.com/blockly/installation/toolbox . Therein you'll find a way to configure your toolbox.

Regards
Avi 

mehmet sinoplu

unread,
Aug 21, 2015, 1:35:21 PM8/21/15
to Blockly
I couldn't understand. Which file do i need to make changes in blockly-master folder?

21 Ağustos 2015 Cuma 09:47:32 UTC+3 tarihinde Avi yazdı:

Neil Fraser

unread,
Aug 21, 2015, 1:39:19 PM8/21/15
to blo...@googlegroups.com
Probably whichever HTML file you are loading in your browser (demos/code/index.html maybe?).  Look for a big XML tree, and start pruning.

--
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.



--

mehmet sinoplu

unread,
Aug 23, 2015, 6:02:54 PM8/23/15
to Blockly
I managed to remove blocks but i couldnt remove tabs. When i attempted to remove colour tab from xml file, other tabs are gone too in browser. How can i do that?

Neil Fraser

unread,
Aug 23, 2015, 6:55:01 PM8/23/15
to blo...@googlegroups.com

I assume you mean category (logic, math, etc), not tab (JavaScript, Python, etc).  When removing a node from XML (e.g. <category name=colour>) don't forget to remove the node's close tag too (e.g. </category>).

Send (awkwardly) from an Android phone.

On 23 Aug 2015 15:02, "mehmet sinoplu" <5767g...@gmail.com> wrote:
I managed to remove blocks but i couldnt remove tabs. When i attempted to remove colour tab from xml file, other tabs are gone too in browser. How can i do that?

mehmet sinoplu

unread,
Aug 24, 2015, 2:29:59 AM8/24/15
to Blockly, ro...@neil.fraser.name

I did what you said but when i remove colour category, all categories are gone like in the picture.









24 Ağustos 2015 Pazartesi 01:55:01 UTC+3 tarihinde Neil Fraser yazdı:
Reply all
Reply to author
Forward
0 new messages