Hi,
I am wondering if we can add custom attributes to block instances via the XML and be able to read and update it dynamically via the block instance in the workspace.
For example, suppose I have a block for making http request to a URL. Input to the block should be the URL. I also want an attribute called "timeout" that I want to be able to set via an instance of the block (programatically) as well as define it via the XML block definition. This attribute should not be exposed to the UI of the block. Is this possible?
i.e.
<block id="fsd33dfjdl;kf" type="http_request" timeout="30"></block>
const block = workspaceSvg.getBlockById("fsd33dfjdl;kf")
block.setAttribute("timeout", 25)
thank you
Prabakar