databinding-$24.lzx
<canvas width="100%" height="200">
<dataset name="tabnames">
<title name="Account Info"/>
<title name="Order History"/>
<title name="Preferences"/>
<title name="Shopping Cart"/>
</dataset>
<simplelayout axis="x" spacing="25"/>
<button text="Create tabs">
<handler name="onclick">
gs.pane.setAttribute('datapath', 'tabnames:/title')
bs.pane.setAttribute('datapath', 'tabnames:/title')
</handler>
</button>
<class name="repltabelt" extends="tabelement" text="$path{'@name'}" visible="true"/>
<tabslider width="150" name="gs" height="150" spacing="2">
<repltabelt name="pane">
<datapath>
<handler name="onclones">
if (!this['doneDel']) {
this.doneDel = new LzDelegate(this, 'openOH')
this.doneDel.register(clones[clones.length - 1], 'oninit')
}
</handler>
<method name="openOH">
parent.select(this.getCloneNumber(0))
</method>
</datapath>
</repltabelt>
</tabslider>
<tabslider width="150" name="bs" height="150" spacing="2">
<repltabelt name="pane">
<datapath>
<handler name="onclones">
parent.select(this.getCloneNumber(0))
</handler>
</datapath>
</repltabelt>
</tabslider>
</canvas>
Cross References
Classes
Named Instances
- <dataset name="tabnames">
- <tabslider name="bs">
- <tabslider name="gs">