Fejlesztőknek
Kezdj bele
Témák/Theme SDK/Modules/slots

slots

Ez az oldal még csak angolul érhető el.

App slots, app zones and host widget names.

Ezen az oldalon
import { … } from '@poltura/theme-sdk/slots';

Parts

NameWhat it is
AppSlotAn anchor that draws the theme's content, then every active app's widget for the slot; nothing when both are empty.
AppZoneThe app blocks the merchant placed in the header or footer zone, in their order.

Constants

NameWhat it is
APP_SLOT_NAMESEvery app slot a theme can place.
HOST_SLOT_NAMESEvery host widget name.

Types

NameWhat it is
AppSlotNameA named anchor where installed apps append their widgets, such as footer.help.
AppSlotPropsProps of AppSlot.
AppZoneNameA page-wide band apps fill with blocks the merchant places: above the header or below the footer.
AppZonePropsProps of AppZone.
HostSlotNameA widget the host draws and a theme can place but never replace, such as the payment methods.
Utoljára frissítve