LuCI dynamic combobox options

Hello,

I am looking at the jsapi for creating LuCI configuration pages and I am not sure what approaches are available for having different values in a combobox. The creation of static comboboxes within the render function is something I have seen in numerous examples but I am not sure what approaches are expected when the contents of one combobox depends on the selection made in another for example. I can trigger an event on the value change from the first combobox but then what should follow that?

I have been looking through examples to try to find this pattern but have not yet had any luck in doing so. Any suggestions are appreciated.

Thanks,

Jason