stafftastic Docs
Spaces

Advanced Usage

Configuration

Spaces can be configured using attributes on the <script> element. The following attributes are supported:

AttributeDefaultType
data-targetstring The ID of the element where the Space will be embedded
data-space-idstring
data-localedestring Either en or de
data-param-namespacestring Scope the query parameters for the Space
data-param-namespace is optional. You usually only need it if you want to avoid conflicts with other URL parameters. The namespace is prepended to all URL parameters used by the Space, separated by a colon. For example, if you set data-param-namespace="stafftastic", the occupation filter will be stored in the URL as stafftastic:occupation instead of just occupation.
data-locale will not change the language of the Space if the user has a different language preference set in their browser. It will only be used as a fallback if no preference is set or a preference is set that is not supported by the Space.