Closed OpenModDev closed 1 year ago
Modify what? Control type - delete control and create new one, control value - get control (let ctrl = this.editor.nodes.find(n => n.id === node.id).controls.get('control key') and call ctrl.setValue(val)
i have a control that is a dropdown and i want to dynamically add more options to it
add function (to control) like addOptions({name, value}) and add records to dropdown data array.
yeah but the new options don't render
probably you need to call the update
method of control, if you need to re-render view
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
How can i modify a control inside the worker function of a component?