data
specifies an array of data objects to set into the combobox
data?: DataCollection<any> | any[];
Example
const combo = new dhx.Combobox("combo_container",{
data: [
{
"value": "Austria",
"src": "../common/flags/at.png"
},
{
"value": "Belgium",
"src": "../common/flags/be.png"
},
{
"value": "Bulgaria",
"src": "../common/flags/bg.png"
},
{
"value": "Cyprus",
"src": "../common/flags/cy.png"
}
});
Related sample: Combobox. Initialization with config.data
Change log:
added in v6.4