I have object:
items = [
{value:'value1', text: 'text1'},
{value:'value2', text: 'text2'},
{value:'value3', text: 'text3'}
];
This object will be changed. So I want add options like this:
z.addOption([
items
]);
Of course, it doesn’t work.
How can I add options using only object?