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

Just starting out? Need help? Post your questions and find answers here.
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

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

Post 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?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/