Combobox Template"

From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} Similar to Listbox, you can render a combobox with a template: <source lang=...")
 
m ((via JWB))
Line 24: Line 24:
 
=Version History=
 
=Version History=
 
{{LastUpdated}}
 
{{LastUpdated}}
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-

Revision as of 08:18, 11 January 2022



Similar to Listbox, you can render a combobox with a template:

<combobox model="${infos}">
	<template name="model">
		<comboitem label="${each[0]}: ${each[1]}"/>
	</template>
</combobox>

where we assume there is a list model (ListModel) called infos such as:

ListModel infos = new ListModelArray(
	new String[][] {
		{"Apple", "10kg"},
		{"Orange", "20kg"},
		{"Mango", "12kg"}
});

Version History

Last Update : 2022/01/11


Version Date Content
6.0.0 July 2011 The template feature was introduced.



Last Update : 2022/01/11

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