Constants
Ez az oldal még csak angolul érhető el.
The constants of @poltura/theme-sdk/elements.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/elements';field
The setting builders a definition's settings object is written with.
const field: FieldBuildersExample
import { field } from '@poltura/theme-sdk/elements';
export const settings = {
heading: field.text({ label: 'Heading', default: 'New arrivals' }),
columns: field.range({ label: 'Columns', min: 2, max: 6, default: 4 }),
};ELEMENT_CATEGORIES
Every picker group, in picker order.
const ELEMENT_CATEGORIES: readonly ElementCategory[]ELEMENT_WILDCARD
In accepts, admits any element.
const ELEMENT_WILDCARD: '@element'THEME_BLOCK_WILDCARD
In accepts, admits the theme's and the installed apps' blocks.
const THEME_BLOCK_WILDCARD: '@theme'STYLE_CAPABILITIES
Every style group an element can offer.
const STYLE_CAPABILITIES: readonly StyleCapability[]