Keep toolbox open

53 views
Skip to first unread message

bruh 9000

unread,
Mar 28, 2024, 10:07:49 PM3/28/24
to Blockly
Is there a way to keep the toolbox open until someone clicks outside of the toolbox, rather than it closing when you drag a block out?

Maribeth Moffatt

unread,
Mar 29, 2024, 1:14:31 PM3/29/24
to Blockly
Hello,

The part of the toolbox that opens and closes is called the flyout. You can have it remain open by calling `setAutoClose(false)` on the flyout. You can access the flyout with `myWorkspace.getFlyout()`. If you enable this, the flyout will always remain open by default. You can manually close it on an event trigger of your choice by calling `hide()` on the flyout.

Best,
Maribeth

Reply all
Reply to author
Forward
0 new messages