Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

attributes Property

Developers.QuiXattributes History

Hide minor edits - Show changes to markup

February 03, 2007, at 11:33 PM by Tassos Koutsovassilis -
Changed line 24 from:
  • If the "type" attribute is set to "strlist" the value type is an array of strings. In this case you can specify the string del imiter by using the "delimiter" attribute. The default delimiter is the ";".
to:
  • If the "type" attribute is set to "strlist" the value type is an array of strings. In this case you can specify the string delimiter by using the "delimiter" attribute. The default delimiter is the ";".
February 03, 2007, at 11:33 PM by Tassos Koutsovassilis -
Changed line 24 from:
  • If the "type" attribute is set to "strlist" the value type is an array of string. In this case you can specify the string del imiter by using the "del imiter" attribute. The default deli miter is the ";".
to:
  • If the "type" attribute is set to "strlist" the value type is an array of strings. In this case you can specify the string del imiter by using the "delimiter" attribute. The default delimiter is the ";".
June 08, 2006, at 02:51 PM by Tassos Koutsovassilis -
Changed lines 20-24 from:
  • If the type attribute is set to "str" or ommited then the value type is considered to be a string.
  • If the type attribute is set to "int" the value type is integer.
  • If the type attribute is set to "float" the value type is float.
  • If the type attribute is set to "bool" the value type is boolean (possible values are "0" and "1").
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string del imiter by using the del imiter attribute. The default deli miter is the ";".
to:
  • If the "type" attribute is set to "str" or ommited then the value type is considered to be a string.
  • If the "type" attribute is set to "int" the value type is integer.
  • If the "type" attribute is set to "float" the value type is float.
  • If the "type" attribute is set to "bool" the value type is boolean (possible values are "0" and "1").
  • If the "type" attribute is set to "strlist" the value type is an array of string. In this case you can specify the string del imiter by using the "del imiter" attribute. The default deli miter is the ";".
June 08, 2006, at 02:50 PM by Tassos Koutsovassilis -
Changed lines 18-19 from:

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

to:

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:

June 08, 2006, at 02:50 PM by Tassos Koutsovassilis -
Changed lines 3-4 from:

This is a placeholder property for any custom attributes attached to a widget.

to:

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

June 08, 2006, at 02:36 PM by Tassos Koutsovassilis -
Changed line 24 from:
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string d e l i m i t e r by using the d e l i m i t e r attribute. The default d e l i m i t e r is the ";".
to:
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string del imiter by using the del imiter attribute. The default deli miter is the ";".
June 08, 2006, at 02:35 PM by Tassos Koutsovassilis -
Changed line 24 from:
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string delim by using the delim attribute. The default delim is the ";".
to:
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string d e l i m i t e r by using the d e l i m i t e r attribute. The default d e l i m i t e r is the ";".
June 08, 2006, at 02:11 PM by Tassos Koutsovassilis -
Added line 24:
  • If the type attribute is set to "strlist" the value type is an array of string. In this case you can specify the string delim by using the delim attribute. The default delim is the ";".
June 08, 2006, at 02:10 PM by Tassos Koutsovassilis -
Added line 23:
  • If the type attribute is set to "bool" the value type is boolean (possible values are "0" and "1").
June 08, 2006, at 02:09 PM by Tassos Koutsovassilis -
Changed lines 20-22 from:
  • If the type attribute is ommited then the value type is considered a string.
to:
  • If the type attribute is set to "str" or ommited then the value type is considered to be a string.
  • If the type attribute is set to "int" the value type is integer.
  • If the type attribute is set to "float" the value type is float.
June 08, 2006, at 01:51 PM by Tassos Koutsovassilis -
Changed lines 3-4 from:

This is a placeholder for any custom attributes attached to a widget.

to:

This is a placeholder property for any custom attributes attached to a widget.

Changed lines 14-20 from:
JavaScriptwidget.attributes["my_custom1"] = "a string";
widget.attributes["my_custom2"] = 1;
to:
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 with QuiX markup - using the prop tag - the supported types are:

  • If the type attribute is ommited then the value type is considered a string.
June 08, 2006, at 01:39 PM by Tassos Koutsovassilis -
Added lines 1-14:

(:title attributes Property:)

This is a placeholder for any custom attributes attached to a widget.

Syntax

QuiX XML
<qx:rect xmlns:qx="http://www.innoscript.org/quix">
    <qx:prop name="my_custom1" value="a string"/>
    <qx:prop name="my_custom2" type="int" value="1"/>
</qx:rect>
JavaScriptwidget.attributes["my_custom1"] = "a string";
widget.attributes["my_custom2"] = 1;
Page last modified on February 03, 2007, at 11:33 PM