View Full Version : How to open tabpane dynamically
thipperudra
03-29-2004, 08:34 PM
Hi Antun
I want to make tab of tabpane should open, if I clicked on the button (button is out of the tabpane or with in the tabpane of the another tabpane ).How can I do this in laszlo.
Thanks,
-Rudresh
antun
03-30-2004, 08:57 AM
The method is hidden for some reason. I got it from the source code for the tabpane class (it comes from basetabpane, which tabpane inherits from, and lives in WEB-INF/lps/components/base/basetabs.lzx).
<canvas width="800" height="1000" debug="true">
<debug y="300" width="600" height="600" />
<include href="base" />
<simplelayout axis="y" spacing="10" />
<tabs x="10" tabclass="tab" bgcolor="green">
<tabpane>
<text>one</text>
</tabpane>
<tabpane id="foo">
<text>two</text>
</tabpane>
<tabpane>
<text>three</text>
</tabpane>
</tabs>
<button>Make "two" selected
<method event="onclick">
foo._setSelected( true );
</method>
</button>
</canvas>
-Antun
thipperudra
03-30-2004, 09:17 PM
Thank you very much Antun for your kind solutions.
-Rudresh
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.