ignatandrei / NETCoreBlockly

.NET Core API to Blockly - generate from WebAPI, Swagger, OData, GraphQL => https://visualapi.azurewebsites.net/
https://ignatandrei.github.io/BlocklyAutomation/
MIT License
177 stars 37 forks source link

Example new Block creation tutorial #168

Open djaus2 opened 6 months ago

djaus2 commented 6 months ago

GraphQL etc coding is not my area of expertise. Would it be possible to have a short tutorial on how to add a couple of new simple blocks. HelloWorld and slightly above in complexity?

ignatandrei commented 6 months ago

I do not want enter into GraphQL intricancies. Too complicated for a HTTP call from Web.

ignatandrei commented 6 months ago

For new Block creation : please follow https://developers.google.com/blockly/guides/create-custom-blocks/overview

ignatandrei commented 6 months ago

What do you want to create?

djaus2 commented 5 months ago

Thanks for the reply. It was a general query. I'll look into that Blockly tute.

In the meantime I have found a partial way around that. I create a controller called Misc in which I can put some C# coding in a Get method. I then can call it from Blockly with parameters, get the processed result and use that. I have used it to create a detailed menu string from a CSV string.

Will post on my blog site, but the build on Azure is failing.

djaus2 commented 5 months ago

Here is my blog post on creating a Custom block via call to the Controller: https://djzblogaccname137.z26.web.core.windows.net/softata/Softata-CustomBlocksviaASP.NETController-softata.html