Tree"

From Documentation
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ZKComponentReferencePageHeader}}
 
{{ZKComponentReferencePageHeader}}
 +
{{versionSince|9.5.0}} {{ZK EE}}
  
= Listbox =
+
{{ZKComponentReferenceAccessibilityNamingReference}}
*Demonstration: N/A
 
*Style Guide: N/A
 
*[http://www.zkoss.org/product/edition.dsp Available in ZK EE only]
 
  since 9.5.0
 
 
 
== Related components ==
 
Auxhead, Auxheader, Treecell, Treecol, Treefooter, Treeitem, Treerow
 
 
 
== Required Settings ==
 
 
 
{| border="1px"
 
! <center>Attributes</center>
 
! <center>Description</center>
 
|-
 
| aria-label
 
| Describe the tree.
 
|}
 
  
 
== Keyboard Support ==
 
== Keyboard Support ==
{| border="1px"
+
{| class='wikitable'
 
! <center>Key</center>
 
! <center>Key</center>
 
! <center>Description</center>
 
! <center>Description</center>
 
|-
 
|-
| ArrowUp/ArrowDown
+
| ArrowUp / ArrowDown
 
| Select Treeitems or focus on Treecols.
 
| Select Treeitems or focus on Treecols.
 
|-
 
|-
| ArrowLeft/ArrowRight
+
| ArrowLeft / ArrowRight
 
| If the treeitem is openable, toggle the open status. Focus on Treecell or Treecols.
 
| If the treeitem is openable, toggle the open status. Focus on Treecell or Treecols.
 
|}
 
|}
 
== Example ==
 
<source lang="xml">
 
<zk xmlns:ca="client/attribute">
 
    <tree ca:aria-label="Option tree">
 
        <treecols>
 
            <treecol width="100px" id="tcola" label="A" />
 
            <treecol label="B" />
 
            <treecol label="C" />
 
        </treecols>
 
        <treechildren>
 
            <treeitem id="ti0" selected="true">
 
                <treerow>
 
                    <treecell label="A" />
 
                    <treecell label="B" />
 
                    <treecell label="C" />
 
                </treerow>
 
                <treechildren>
 
                    <treeitem selected="true">
 
                        <treerow>
 
                            <treecell label="A-1" />
 
                            <treecell label="B" />
 
                            <treecell label="C" />
 
                        </treerow>
 
                    </treeitem>
 
                    <treeitem>
 
                        <treerow>
 
                            <treecell label="A-2" />
 
                            <treecell label="B" />
 
                            <treecell label="C" />
 
                        </treerow>
 
                    </treeitem>
 
                </treechildren>
 
            </treeitem>
 
        </treechildren>
 
    </tree>
 
</zk>
 
</source>
 

Latest revision as of 03:47, 25 July 2023

Since 9.5.0

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

Label a Component

To name a component with ARIA attribute by adding the aria-label client attribute to the component, please refer to ZK_Developer's_Reference/Accessibility#Specify_ARIA_Attributes

Keyboard Support

Key
Description
ArrowUp / ArrowDown Select Treeitems or focus on Treecols.
ArrowLeft / ArrowRight If the treeitem is openable, toggle the open status. Focus on Treecell or Treecols.