-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I'm using a simple tabpanel, the tabs are clickable and reveal the content for each tab. However is there a way to reveal the appropriate tab as the mouse goes over the data?
I can see there is an onMouseOver event that can be added to the tabs. However I don't know how on the backend (I'm using MVVM) I would hide or show a particular tabpanel.
The relationship between the tab and tabpanel is sort of automatically done by ZK so I wondered how I would go about making the tabs selected by mouse over.
Kind regards
Pete
<tabbox id="tabbox">
<tabs>
<tab id="tab1" onMouseOver="@command('select', tab = tab1, tabbox = tabbox)">
tab1
</tab>
<tab id="tab2" onMouseOver="@command('select', tab = tab2, tabbox = tabbox)">
tab2
</tab>
</tabs>
</tabbox>
public void select(@BindingParam("tab") Tab tab, @BindingParam("tabbox") Tabbox tabbox) {
tabbox.setSelectedTab(tab);
}
Created a fiddle you can test it..
Greetz chill.
Asked: 2014-08-07 10:32:23 +0800
Seen: 9 times
Last updated: Aug 07 '14
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status