Page 1 of 1

Setting data-dojo-props on SpiderBasic item (PanelGadget)?

Posted: Sun Nov 06, 2016 3:32 pm
by bbanelli
Greetings,

I'd like to have closable tabs (panel items) in panel.

I've found this reference: https://dojotoolkit.org/reference-guide ... ainer.html

I've tried importing dojo.setAttr like this:

Code: Select all

Import ""
SetDOJOAttribute(node.i, name.s, value.s) As "dojo.setAttr"
EndImport
...
SetDOJOAttribute(GadgetItemID(#MyPanel, 1), "closable", "true")
However, I get:

Code: Select all

Uncaught ReferenceError: spider_GadgetItemID is not defined(…)
There is no function in manual, but SpiderBasic's quickhelp displays its meaning.

Anyway, what would be the proper way to handle that? How would one catch those events in case of closing?