tooltip is not a popup! You have to use popup
or context
in your anchor. Do you just want to show some tekst in a tooltip?
First time here? Check out the FAQ!
hello everyone
I m working on Zk project what i need to do is create a popup for every element inside a loop using binding .
here what i have tried to do so far but it s not seem to work
<hlayout children="@bind(menu.listMenu)" style=" padding:0px; margin:0px;" >
<template name="children">
<a sclass="menuItem" tooltip="'@bind(each.icon)' , position=after_center" iconSclass="@bind(each.info)" href="@bind(each.link)" ></a>
<popup id="@bind(each.info)">
<div>
<label value="@bind(each.info)"> </label>
</div>
</popup>
</template>
</hlayout>
Can you help me pls ? thx
Well you need to set the context to your popup id.
Setting a popup only shall never show your popup.
The popup is always connected with popup
or context
depending on how you want to show it.
<hlayout children="@bind(menu.listMenu)" style=" padding:0px; margin:0px;" >
<template name="children">
<popup id="@bind(each.info)">
<div>
<label value="@bind(each.info)"> </label>
</div>
</popup>
<a sclass="menuItem" tooltip="'@bind(each.icon)' , position=after_center"
iconSclass="@bind(each.info)" href="@bind(each.link)"
context="@load(each.info)"/>
</template>
</hlayout>
Edit :After your comment I get what the problem is. Do the following:
<hlayout children="@bind(menu.listMenu)" style=" padding:0px; margin:0px;" >
<template name="children">
<a sclass="menuItem" tooltip="'@bind(each.icon)' , position=after_center"
iconSclass="@bind(each.info)" href="@bind(each.link)"
label="@load(each.info)" autodisable="self" />
</template>
</hlayout>
Greetz chill.
tooltip is not a popup! You have to use popup
or context
in your anchor. Do you just want to show some tekst in a tooltip?
Asked: 2014-05-29 14:45:43 +0800
Seen: 12 times
Last updated: Jun 02 '14
Problem binding values to a composite component
How can i load a constant in .zul
[Ugent please] connect Web service .net view in grid group ZK
Dirty state for forms with collection properties
ZK drang and drop and databinding [closed]
Not able to bind Spring beans after zk upgrade
spring + zk @autowired problem