Wire parameters
A [param:] token can be used within an any class or datasource to specify a placeholder for a value that will be defined at some point during the wire's execution. The value of the [param:] is passed in by either invoking the datasource, or instantiating a class.
For example, within a class if a parameter is set on the attribute of name within a panel and the attribute of text within a text tag, the code would look like this:
<classes> <class name="row-entry"> <panel name="[param:buttonname]"> <text name="label" style="row-label" text="[param:title]"></text> </panel> </class> </classes>In the example above, the class is expecting a value for the [param:] tokens buttoname and title. When the class is instantiated by an object tag, the object paramaters are responsible for the defining the classes' [param:] values as seen below:
<object class="row-entry" buttonname="1" title="John"/>
Requirements
None
Loading...
There was a problem loading this topic