ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: edasilv on December 10, 2021, 01:05:11 am
-
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. <-
},
-
Please check the API documentation for toolbar to set new options after initialization: https://paramquery.com/pro/api#option-toolbar
Kindly let me know if you need further assistance.