Settings and Configurable

Answered

I have a situation where I first add a root TAB in settings, and then I create three sub-tabs in that root TAB, and then my requirement is that the contents of the second sub-tab do not change with the contents of the first sub-tab after the contents of the first sub-tab Apply. Now I have to click OK, let the Settings page close, reopen it again, and the contents of the second subtab will load into the changes of the first subtab. So what I'm wondering is can I trigger the initialization of the second subtab again after the first subtab content apply, or reset every time I click the second subtab, or is there something else you can do?

1
1 comment

Hi,

There is no API for such a requirement. A configurable and its components may be not loaded until it is focused. You can try implementing some workarounds that will try to find the configurable you need (by ID or class; it can be null if not instantiated) and refresh its components, but it is not recommended. It's better to place all the dependent components in a single panel.

0

Please sign in to leave a comment.