View Full Version : Array attributes
sandman
04-17-2003, 01:42 PM
Is it possible to have an attribute of a class that is an array?
antun
04-17-2003, 01:55 PM
Sure. An attribute tag's type is set to expression by default, so:
<view name="myView">
<attribute name="myArr" value="new Array( 'one', 'two', 'three' )" />
</view>
-Antun
Or using array literal syntax:
<attribute name="myArr" value="['one', 'two', 'three']"/>
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.