Tree"

From Documentation
(Created page with "{{ZKComponentReferencePageHeader}} = Tree = *Component Reference: Tree *[http://www.zkoss.org/product/edition.dsp Available in ZK EE only] ...")
 
m (correct highlight (via JWB))
 
(3 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
[[File:Tree_Tablet_Example.png]]
 
[[File:Tree_Tablet_Example.png]]
  
'''Note:''' to disable the friendly scrollbar, please use the following setting.
+
'''Note 1:''' to disable the friendly scrollbar, please use the following setting.
<source lang="xml" high="1">
+
<source lang="xml" highlight="1">
 
<tree xmlns:a="client/attribute" a:data-scrollable="false"/>
 
<tree xmlns:a="client/attribute" a:data-scrollable="false"/>
 +
</source>
 +
'''Note 2:''' to make sure the friendly scrollbar works correctly when containing images inside treecell, please add image preload attribute as follows.
 +
<source lang="xml" highlight="2">
 +
<tree>
 +
    <custom-attributes org.zkoss.zul.image.preload="true"/>
 +
</tree>
 
</source>
 
</source>
  
 
= Version History=
 
= Version History=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
 
| 6.5.0
 
| 6.5.0
 
| July, 2012
 
| July, 2012
| [http://tracker.zkoss.org/browse/K-1239 Grid, Listbox, Tree can support to scroll the content by finger on tablet/mobile device]
+
| [http://tracker.zkoss.org/browse/ZK-1239 Grid, Listbox, Tree can support to scroll the content by finger on tablet/mobile device]
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 08:51, 19 January 2022

Tree

Friendly Scrolling Support

When user swipe on the content of Tree, the friendly scrollbar will appear.

Tree Tablet Example.png

Note 1: to disable the friendly scrollbar, please use the following setting.

<tree xmlns:a="client/attribute" a:data-scrollable="false"/>

Note 2: to make sure the friendly scrollbar works correctly when containing images inside treecell, please add image preload attribute as follows.

<tree>
    <custom-attributes org.zkoss.zul.image.preload="true"/>
</tree>

Version History

Version Date Content
6.5.0 July, 2012 Grid, Listbox, Tree can support to scroll the content by finger on tablet/mobile device



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.