SimplePreference
This class provides a method for managing the Preferences menu. This class has no constructor; its only method is accessed with the s_pref global object.
refresh()
Use this method to refresh the Preferences menu automatically.
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
refresh()
s_form.save().then(async (sysId) => {
await s_user.setPreference('application', s_form.getValue('pack_application_id'));
await s_user.setPreference('vcs.localPack.current', sysId);
await s_pref.refresh();
}).finally(__resolveServerResponse);