Clear All Settings in a Domain (xui.clear)
Declaration
ok = xui.clear(domain)
Parameters
- domain
String. The defaults domain identifier used by the config UI.
Returns
- ok
Boolean. true on success; false on failure (usually because the specified domain does not exist).
Description
This function is used to optimize setting multiple values. If the config UI is currently displayed, it will immediately update the displayed values.
After clearing, you can call xui.setup
to regenerate the default settings for the config UI.
See the config UI standard: XUI
Examples
xui.clear('com.yourcompany.A-Script-Bundle')
xui.setup('interface.xui')