useSaveBeforeActivatingNewSettingsTab Function
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 June, 2023