useSaveBeforeActivatingNewSettingsTab Function
Deprecated in 4.16.0. Use SettingsManager instead.
Hook to use within Settings Page component to allow saving the current page's data before loading to the requested Setting Tab's page.
useSaveBeforeActivatingNewSettingsTab(settingsManager: SettingsManager, saveFunction: (tabSelectionFunc: (args: any) => void, requestedSettingsTabId?: string) => void): void
Parameter | Type | Description |
---|---|---|
settingsManager | SettingsManager | |
saveFunction | (tabSelectionFunc: (args: any) => void, requestedSettingsTabId?: string) => void |
Returns - void
Defined in
Last Updated: 20 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.