jspreadsheet / pro

Jspreadsheet Pro | The javascript spreadsheet
https://jspreadsheet.com/
15 stars 1 forks source link

Dropdown and Auto Complete - store JSON at Data #305

Closed mfarchana closed 11 months ago

mfarchana commented 11 months ago

based on the following documentation https://jspreadsheet.com/docs/dropdown-and-autocomplete

data: [ [1, 'Beatles'], [2, 'Beatles'], ],

can jspreadsheet store JSON data like this data: [ [{ id:'1', name:'Paul' }, 'Beatles'], [{ id:'2', name:'Ringo' }, 'Beatles'], ],

Thank you.

hodeware commented 11 months ago

You can declare an array of strings or array of objects as follow: data: [ 'Beatles', 'Test' ], data: [ { id:'1', name:'Paul' }, { id:'2', name:'Ringo'} ],