0

menuitem image not showing.

asked 2014-01-24 16:05:23 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

updated 2014-01-25 15:48:05 +0800

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..

delete flag offensive retag edit

Comments

1

Try it:

You are missing / in your zul.

&lt;menuitem label="Delete" image="/img/navigation/delete.png"/&gt;
sitansu ( 2014-01-24 18:37:26 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-27 07:30:03 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

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.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-01-24 16:05:23 +0800

Seen: 34 times

Last updated: Jan 27 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More