data

specifies an array of data objects to set into the combobox

array data;

Example

var 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 samples

See also
Change log

added in v6.4

Back to top