0

Tree .CSS images not visible

asked 2008-07-21 16:15:07 +0800

roxcastaneda gravatar image roxcastaneda
57

the default .css images of the tree are not visible even on the tree demo on zkdemo. I can't find the last-close.gif, last.gif and others why is this? is there a way we can be able to see it?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-07-22 12:42:17 +0800

ansancle gravatar image ansancle
317 9

There are no images in the tree demo, here is an example using the zkdemo that also uses a .css style to add an image
Cut and past this code into a zkdemo "try me" window and the first item will have a "folder" image.

Source 
<window title="tree demo" border="normal">
<style>
.treeCellWithImage
{
    background:URL(/zkdemo/img/folder.gif) no-repeat;
}
</style>
	<tree id="tree" width="90%" rows="5">
		<treecols sizable="true">
			<treecol label="Name"/>
			<treecol label="Description"/>
		</treecols>
		<treechildren>
			<treeitem>
				<treerow>
					<treecell sclass="treeCellWithImage" label="Item 1"/>
					<treecell  label="Item 1 description"/>
				</treerow>
			</treeitem>
			<treeitem>
				<treerow>
					<treecell label="Item 2"/>
					<treecell label="Item 2 description"/>
				</treerow>
				<treechildren>
					<treeitem>
						<treerow>
							<treecell label="Item 2.1"/>
						</treerow>
						<treechildren>
							<treeitem>
								<treerow>
									<treecell label="Item 2.1.1"/>
								</treerow>
							</treeitem>
							<treeitem>
								<treerow>
									<treecell label="Item 2.1.2"/>
								</treerow>
							</treeitem>
						</treechildren>
					</treeitem>
					<treeitem>
						<treerow>
							<treecell label="Item 2.2"/>
							<treecell label="Item 2.2 is something who cares"/>
						</treerow>
					</treeitem>
				</treechildren>
			</treeitem>
			<treeitem label="Item 3"/>
		</treechildren>
	</tree>
</window>
				
			Code

link publish delete flag offensive edit

answered 2008-07-22 18:07:07 +0800

roxcastaneda gravatar image roxcastaneda
57

I think your missing my point here. Images are available before 3.0.6 even before 3.5.0 FL

Take a look at this http://www.zkoss.org/smalltalks/zkTreeModel/

You can see the dotted line images along with the + and - signs.

Where did those dotted lines go?

Anything I can do to show it? The tree looks a bit bland without it don't you think?

link publish delete flag offensive edit

answered 2008-07-22 19:47:58 +0800

ansancle gravatar image ansancle
317 9

Understood, personal preference on which is better - I like the new, definitely a question for the ZK guys on how to get them back.

link publish delete flag offensive edit

answered 2008-07-22 20:40:35 +0800

kevinhx gravatar image kevinhx
3

Please see https://sourceforge.net/tracker/?func=detail&atid=785191&aid=2023894&group_id=152762.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-07-21 16:15:07 +0800

Seen: 132 times

Last updated: Jul 22 '08

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