Accessibility"

From Documentation
Line 2: Line 2:
  
 
This section describes the accessibility of ZK Components.
 
This section describes the accessibility of ZK Components.
 +
 +
= Specify ARIA Attributes=
 +
You can specify arbitrary ARIA attribute on a component with [https://www.zkoss.org/wiki/ZUML_Reference/ZUML/Namespaces/Client_Attribute namespace "client/attribute"]. For example you can add an <tt>aria-label</tt> like
 +
 +
<source lang='xml'>
 +
<zk  xmlns:ca="client/attribute">
 +
    <textbox ca:aria-label="price"/>
 +
    <textbox ca:aria-label="${field}"/>
 +
</zk>
 +
</source>
  
 
Note: the following subsections are only applied for ZK EE version only.
 
Note: the following subsections are only applied for ZK EE version only.

Revision as of 10:13, 15 September 2020


Accessibility

This section describes the accessibility of ZK Components.

Specify ARIA Attributes

You can specify arbitrary ARIA attribute on a component with namespace "client/attribute". For example you can add an aria-label like

<zk  xmlns:ca="client/attribute">
    <textbox ca:aria-label="price"/>
    <textbox ca:aria-label="${field}"/>
</zk>

Note: the following subsections are only applied for ZK EE version only.

[Since ZK 9.5.0]





Last Update : 2020/09/15

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