Content Options
Default content
export const contentDefault = {
title: 'Cookies compliance',
message: 'We use cookies',
policy: '',
btnAccept: 'Accept all',
btnReject: 'Reject all',
btnDismiss: 'Cookies policy',
btnInfo: 'Details',
btnSettings: 'Settings',
content_align: 'left',
info: '',
}
title
- Type:
string
- Default:
Cookies compliance
Specifies the title of the cookies message.
message
- Type:
string
- Default:
We use cookies
Specifies the text of the cookies message.
align
- Type:
'left' | 'right' | 'center'
- Default:
left
Specifies the alignment of the content (title and message, not buttons).
policy
- Type:
string
Specifies the text for the privacy policy link. If not specified, it will not be shown.
policyLink
- Type:
string
Specifies the link to the privacy policy. If not specified, the text will not be shown.
btnAccept
- Type:
string
- Default:
Accept all
Specifies the text for the accept button. By clicking this button, all the cookies will be accepted.
btnReject
- Type:
string
- Default:
Reject all
Specifies the text for the reject button. By clicking this button, all the cookies will be rejected.
btnDismiss
- Type:
string
- Default:
Cookies policy
Specifies the text for the dismiss button. This button is shown when the cookies message is accepted or rejected. By clicking this button, the cookies message will be shown.
btnSettings
- Type:
string
- Default:
Settings
Specifies the text for the settings button. By clicking this button, the settings window will be open to select custom cookies.
settingsHeader
- Type:
string
Specifies the text that will be shown in the header of the settings window. It is possible to specify HTML code.
settingsFooter
- Type:
string
Specifies the text that will be shown in the footer of the settings window. It is possible to specify HTML code.
btnSettingsSelectAll
- Type:
string
- Default:
Select all
Specifies the text for the select all button placed in the settings window.
btnSettingsUnselectAll
- Type:
string
- Default:
Unselect all
Specifies the text for the unselect all button placed in the settings window.
btnSettingsAccept
- Type:
string
- Default:
Accept selection
Specifies the text for the accept selection button placed in the settings window.
btnInfo
- Type:
string
- Default:
More info
Specifies the text for the information button. By clicking this button, the information window will be open.
info
- Type:
string
Specifies the text that will be shown in the information window. It is possible to specify HTML code.