I have a JS class like below.
It's ok with limited drop down list content, but I want to dynamically generate the content when it comes to say 1 ~ 100.
How can I do that?
new Dropdown('dropdown', { items: [
{ value: '1', name: '1', selected: true},
{ value: '2', name: '2'},
{ value: '7', name: '3'}
]});
Thanks,