web / useFooter
Function: useFooter() ​
useFooter():
object
Defined in: apps/web/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
extractFooterFromBlocks() ​
extractFooterFromBlocks: (
content
) =>null
|FooterSettings
Parameters ​
content ​
string
Returns ​
null
| FooterSettings
fetchFooterSettings() ​
fetchFooterSettings: () =>
Promise
<FooterSettings
>
Returns ​
Promise
<FooterSettings
>
footerCache ​
footerCache:
Readonly
<Ref
<null
| {colors
: {background
:string
;footnoteBackground
:string
;footnoteText
:string
;text
:string
; };column1
: {description
:string
;showContactLink
:boolean
;title
:string
; };column2
: {description
:string
;showContactLink
:boolean
;title
:string
; };column3
: {description
:string
;showContactLink
:boolean
;title
:string
; };column4
: {description
:string
;showContactLink
: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
: {description
:string
;showContactLink
:boolean
;title
:string
; };column2
: {description
:string
;showContactLink
:boolean
;title
:string
; };column3
: {description
:string
;showContactLink
:boolean
;title
:string
; };column4
: {description
:string
;showContactLink
:boolean
;title
:string
; };footnote
:string
;footnoteAlign
:"right"
|"left"
|"center"
;meta
: {isGlobalTemplate
:boolean
;uuid
:string
; }; }>>
getDefaultFooterSettings() ​
getDefaultFooterSettings: () =>
FooterSettings
Returns ​
FooterSettings
getFooterSettings() ​
getFooterSettings: () =>
FooterSettings
Returns ​
FooterSettings
updateFooterCache() ​
updateFooterCache: (
newFooterSettings
) =>void
Parameters ​
newFooterSettings ​
FooterSettings
Returns ​
void