islandId
Compose an island id.
Compose an island id. scope is the emitter’s per-section-instance identity —
without it, two instances of one section on a page collide.
Import from @homepages/template-kit or @homepages/template-kit/island-runtime.
Signature
Section titled “Signature”function islandId(scope: string, islandKey: string, ordinal: number): stringParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
scope |
string |
required | |
islandKey |
string |
required | |
ordinal |
number |
required |
Returns
Section titled “Returns”string
See also
Section titled “See also”deserializeIslandPropsserializeIslandPropsATTR_ISLAND_FRAMELESSATTR_ISLAND_IDATTR_ISLAND_KEYATTR_ISLAND_PROPSEDITOR_BRIDGE_PROPEDITOR_BRIDGE_PROTOCOLISLAND_CAPTURE_HOLDS_GLOBALISLAND_ELEMENTIslandPropsErrorEditorBridgeIslandEditorIslandModuleEditorBridgeSelectionEditorSelectionIslandComponentIslandEditorOptionsIslandPropsIslandServerFrame