web / useFooter
Function: useFooter() ​
useFooter():
object
Defined in: apps/web/app/composables/useFooter/useFooter.ts:8
Composable for accessing global footer settings Handles fetching and caching of footer configuration
Returns ​
object
addFooterBlock ​
addFooterBlock:
AddFooterBlock
clearFooterCache() ​
clearFooterCache: () =>
void
Returns ​
void
createDefaultFooterSettings() ​
createDefaultFooterSettings: () =>
FooterSettings
Returns ​
FooterSettings
extractFooterFromBlocks() ​
extractFooterFromBlocks: (
content) =>FooterSettings|null
Parameters ​
content ​
string
Returns ​
FooterSettings | null
fetchFooterSettings() ​
fetchFooterSettings: () =>
Promise<FooterSettings>
Returns ​
Promise<FooterSettings>
footerCache ​
footerCache:
Readonly<Ref<{colors: {background:string;footnoteBackground:string;footnoteText:string;text:string; };column1: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column2: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column3: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column4: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };footnote:string;footnoteAlign:"right"|"left"|"center";meta: {isGlobalTemplate?:boolean;uuid:string; }; } |null, {colors: {background:string;footnoteBackground:string;footnoteText:string;text:string; };column1: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column2: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column3: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };column4: {[key:string]:string|boolean|undefined;description?:string;showCancellationForm?:boolean;showCancellationRights?:boolean;showContactLink?:boolean;showDeclarationOfAccessibility?:boolean;showLegalDisclosure?:boolean;showPrivacyPolicy?:boolean;showRegisterLink?:boolean;showTermsAndConditions?:boolean;title:string; };footnote:string;footnoteAlign:"right"|"left"|"center";meta: {isGlobalTemplate?:boolean;uuid:string; }; } |null>>
getFooterSettings() ​
getFooterSettings: () =>
FooterSettings
Returns ​
FooterSettings
updateFooterCache() ​
updateFooterCache: (
newFooterSettings) =>void
Parameters ​
newFooterSettings ​
FooterSettings
Returns ​
void