Accessibility"

From Documentation
Line 5: Line 5:
  
 
= Required Setup=
 
= Required Setup=
To enable accessibility support in ZK, you need to include za11y.jar:
+
ZK accessibility module is a separate, optional jar, you have to include it manually to enable it.
  
 
<source lang='xml'>
 
<source lang='xml'>
Line 16: Line 16:
  
  
 +
== Check at Runtime ==
 +
To ensure za11y.jar
 +
'''textbox.zul'''
 +
<source lang='xml'>
 +
<textbox />
 +
</source>
 +
 +
Inspect the textbox with developer tool, you will see:
 +
<source lang='html' high='2'>
 +
<input id="h5AP0" class="z-textbox" type="text"
 +
aria-disabled="false" aria-readonly="false">
 +
</source>
 +
There are ARIA attributed rendered in the element.
  
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Revision as of 10:01, 25 September 2020


Accessibility



Required Setup

ZK accessibility module is a separate, optional jar, you have to include it manually to enable it.

		<dependency>
			<groupId>org.zkoss.zk</groupId>
			<artifactId>za11y</artifactId>
			<version>${zk.version}</version>
		</dependency>


Check at Runtime

To ensure za11y.jar textbox.zul

<textbox />

Inspect the textbox with developer tool, you will see:

<input id="h5AP0" class="z-textbox" type="text" 
aria-disabled="false" aria-readonly="false">

There are ARIA attributed rendered in the element.




Last Update : 2020/09/25

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