-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i have this code
<image src='/img/navigation/delete.png'/>//image show correctly
<menupopup id="listmenu">
<menuitem label="Delete" image="img/navigation/delete.png"/>//image dont show at all
</menupopup>
i have also try using single quotes double quotes without success starting with slash or without also.
image='/img/navigation/delete.png'
image='img/navigation/delete.png'
image="/img/navigation/delete.png"
image="img/navigation/delete.png"
image="www.google.com.tw/images/icons/product/chrome-128.png"
the image on the image shows good but dont show on the menuitem even when they have the same path...
UPDATE
i have check the sample provided by ZK and this is the ZUL code
<menuitem image="/widgets/menu/context_menu/img/UserProfileMale-16x16.png" label="Profile" />
this generate this HTML
<a href="javascript:;" id="b9FVk-a" class="z-menuitem-content">
<img src="/zkdemo/widgets/menu/context_menu/img/UserProfileMale-16x16.png;jsessionid=690619C76D278163402749B336894F89.zkdemo" class="z-menuitem-image" align="absmiddle">
<span class="z-menuitem-text">Profile</span>
</a>
and the image shows OK.
but my ZUL
<menuitem label="Delete" image="/img/navigation/delete.png"/>
generates this HTML
<a href="javascript:;" id="b2IQyj3-a" class="z-menuitem-cnt">
<span class="z-menuitem-img" style="background-image:url(/main/img/navigation/delete.png)"></span>
Delete
</a>
they differs a lot i am Using ZK. EE 6.5.2 what i am doing wrong..
Tested Browsers Chrome and Mozilla..
Answered here : http://stackoverflow.com/questions/21352769/zk-menuitem-image-not-showing/21374867#21374867
There is indeed something off, BUT its working in zk 6.5.3 with local images.
Greetz chill.
Asked: 2014-01-24 16:05:23 +0800
Seen: 34 times
Last updated: Jan 27 '14
Try it:
You are missing
sitansu ( 2014-01-24 18:37:26 +0800 )edit/
in your zul.