API Reference > ui-core > Settings > useSaveBeforeClosingSettingsContainer useSaveBeforeClosingSettingsContainer Function Beta Hook to use within Settings Page component to allow saving the current page's data before the Setting Container is closed. useSaveBeforeClosingSettingsContainer(settingsManager: SettingsManager, saveFunction: (closeFunc: (args: any) => void, closeFuncArgs?: any) => void): void Parameter Type Description settingsManager SettingsManager saveFunction (closeFunc: (args: any) => void, closeFuncArgs?: any) => void Returns - void Defined in ui/core/src/ui-core/settings/SettingsContainer.tsx Line 31 Last Updated: 12 June, 2024