From Porcupine wiki

Developers: attributes Property

This is a placeholder property for attaching custom attributes to a widget.


<qx:rect xmlns:qx="">
    <qx:prop name="my_custom1" value="a string"/>
    <qx:prop name="my_custom2" type="int" value="1"/>
JavaScriptwidget.attributes["my_custom1"] = "a string";
widget.attributes["my_custom2"] = 1;

Possible values

It is clear that when setting a custom attribute with scripting, the assigned value can be of any type. When setting a custom attribute using QuiX markup - using the prop tag - the supported types are:

Retrieved from
Page last modified on February 03, 2007, at 11:33 PM