From Documentation

Jump to: navigation, search

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

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

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 : 2012/2/8

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

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

You got stuck here?
Let us know how we can improve this page
For specific questions please use the forum