Tree"

From Documentation
(Created page with "{{ZKComponentReferencePageHeader}} = Listbox = *Demonstration: N/A *Style Guide: N/A *[http://www.zkoss.org/product/edition.dsp Available in ZK EE only] since 9.5.0 == Relate...")
 
 
(8 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 listbox.
 
|}
 
  
 
== 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">
 
        <listbox width="350px" ca:aria-label="Team Member">
 
    <listhead>
 
        <listheader label="name" sort="auto" />
 
                <listheader label="gender" />
 
                <listheader label="phone" />
 
    </listhead>
 
    <listitem>
 
        <listcell label="Mary" />
 
        <listcell label="FEMALE" />
 
        <listcell label="000000000" />
 
    </listitem>
 
    <listitem>
 
        <listcell label="John" />
 
        <listcell label="MALE" />
 
    </listitem>
 
</listbox>
 
    </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.