JavaScript
A5.SpinListpopulate Method
Syntax
A5.SpinList.populate(data)
Arguments
- dataarray
Data for the spin list. Each item can be a A5.SpinList Item Object object, or a string. If a string is passed in, then the HTML and value of the list item will be the value of the string.
Description
Populate the spin list with new data.
Example
// To get a pointer to the A5.SpinList class see {dialog.object}.getControl
// assume slObj is a pointer to an instance of the A5.SpinList class
var data = [
{value: 1, html: 'One'},
{value: 2, html: 'Two'},
{value: 3, html: 'Three'},
{value: 4, html: 'Four'},
];
slObj.populate(data);See Also