I have a select on a toolbar with different options of filename that need to be updated after creation, but How to update select text?
I found on documentation something like: $('#import_file').pqSelect("refreshData");
but before refreshing data, I need to set new data to options. How can I do that?
BEFORE: AFTER CREATION
var localFileNames = [{ 'original': 'Original'}] var localFileNames = [{ 'original': 'Original', 'custom': 'Custom'}]
{
type: 'select',
label: 'Choose file: ',
attr: 'id="import_file"',
options: localFileNames. <-
},