Search code examples
blockly

Does Blockly have a file selector?


I am looking to use Blockly to allow non-techie users to specify test scripts.

One part of it will require a File Selector, however, I can't see that Blockly has one. Does it?

Actually, I can't find a complete list of standard blocks. Does anyone have a URL?

If there is no standard Blockly File Selector, (how) can I access the Windows File Selector? (and how, in general, can I execute DOS commands?)


Solution

  • As far as I know, I think that you cannot get a File Selector from Blockly but maybe this post is useful for you in which a man creates a custom Block for this purpose.

    Also, I could not find a list with only the names of all the standard blocks but I saw that on the playground of Blockly you can see all the standard blocks that Google provides to you. If you want to see the code of all of them you can see it on Blockly GitHub.

    I suppose that if Blockly does not have a File Selector it will not also has access to the Windows File Selector but maybe you can create a custom Block for that purpose via Javascript (I do not know what programming language are you using for). This link can help with Javascript Windows File Selector.

    I expect it will be useful for you!