NETCoreBlockly icon indicating copy to clipboard operation
NETCoreBlockly copied to clipboard

Example new Block creation tutorial

Open djaus2 opened this issue 1 year ago • 5 comments

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?

djaus2 avatar May 31 '24 07:05 djaus2

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

ignatandrei avatar May 31 '24 16:05 ignatandrei

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

ignatandrei avatar May 31 '24 16:05 ignatandrei

What do you want to create?

ignatandrei avatar May 31 '24 16:05 ignatandrei

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 avatar Jun 04 '24 09:06 djaus2

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

djaus2 avatar Jun 07 '24 13:06 djaus2