Barcode"

From Documentation
(Created page with "{{ZKComponentReferencePageHeader}} = Barcode = *Demonstration: [http://www.zkoss.org/zksandbox/userguide/#u5 Baicode] *Java API: <javadoc>org.zkoss.zul.Barcode</javadoc> *JavaS...")
 
Line 8: Line 8:
  
 
= Employment/Purpose =
 
= Employment/Purpose =
An <tt>audio</tt> component is used to generate a barcode at the browser, and decode the barcode on the server side. Like <tt>image</tt>, you could use the <tt>type</tt> property to specify the type of barcode, for example: qrcode, code128, code 128A.... The <tt>setContent</tt> method to specify a dynamically generated audio. Developers might be able to control the play of an audio by the <tt>play</tt>, <tt>stop</tt> and <tt>pause</tt> methods.
+
An <tt>audio</tt> component is used to generate a barcode at the browser, and decode the barcode on the server side. There are many properties to dealing with the barcode component. First, you could use the <tt>type</tt> property to specify the type of barcode, for example: qrcode, code128, code 128A...., after choose the type you want, you could generate the barcode of the code. And every barcode image could response to a certain value, the property <tt>value</tt> is for barcode image which wants to stand for.
  
 
= Example =
 
= Example =

Revision as of 08:48, 19 April 2018

Barcode

Employment/Purpose

An audio component is used to generate a barcode at the browser, and decode the barcode on the server side. There are many properties to dealing with the barcode component. First, you could use the type property to specify the type of barcode, for example: qrcode, code128, code 128A...., after choose the type you want, you could generate the barcode of the code. And every barcode image could response to a certain value, the property value is for barcode image which wants to stand for.

Example

ZKComRef Audio Example.png

 <audio src="music.wav" controls="true"></audio>
The audio supports controls property since 7.0.0

Supports HTML5

[Since 7.0.0]

The audio component has now been enhanced to support HTML 5, it includes the properties like autoplay, controls, loop, muted and preload.

Multiple Sources

[Since 7.0.0]

Most browsers do not support all the audio formats,so we could specify multiple source files in different formats for different browsers. For examples:

 <audio src="music.wav, music.mp3, music.ogg" controls="true"></audio>

Supported Events

Name
Event Type
None None

Supported Children

*NONE

Use Cases

Version Description Example Location
     

Version History

Last Update : 2018/04/19


Version Date Content
7.0.0 August, 2013 Audio now supports HTML 5



Last Update : 2018/04/19

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