in my module.tsx I have created dynamically selects, one for each variable present in the dashboard. In another select there is a list of parameters, I would like that once a value is selected, these parameters are added to the selects created at the beginning. How can I pass these values from SimplePanel.tsx to module.tsx? thanks
1 Like
Hi there.
what you want to build is a custom panel option editor
do you mean create the first select as “addCustomEditor” or also the second one? I created the first select with “addCustomEditor”, and I used the method
const handleChange = (selected: SelectableValue<string>) => {
const updatedOptions = {
...context.options,
textValue: selected.value,
};
onChange(updatedOptions);
};
but when caught by SimplePanel, the value of textValue is undefined.
can you show me an example? i think i followed this path, but the value is not updating.
1 Like