Open punto- opened 6 years ago
See http://www.alpacajs.org/docs/api/observables.html. Example:
{
"schema": ...,
"options": ...,
"postRender": function(control) {
control.schema.enum = [ ... ];
control.refresh();
}
}
maybe simple dependencies are what you want: http://www.alpacajs.org/docs/api/dependencies.html
Hi.
How do I programatically add options to a select? I tried using the "add()" function as if it was a "normal" html select widget but it doesn't seem to work. Is there API to do this, or do I have to somehow obtain the underlying html element? (I tried with getControlEl() and it didn't work either).
Thanks