Skip to content

pantoken-root / formats/scope/src / PantokenScope

Atanga: PantokenScope ​

Beta

He rohe ora e herea ki tētahi wāhanga kotahi.

Ngā Rawa ​

element ​

readonly element: HTMLElement

Beta

Te wāhanga e mau ana i ngā āhuatanga rohe.


instanceId ​

readonly instanceId: string

Beta

Te hua kei reira te tohu.

Ngā Tikanga ​

get() ​

get(): ScopeConfig

Beta

Te whirihora ake o te rohe — ngā mea e tautuhia ana e ia, ehara i ngā mea e whakauruhia ana.

Whakahokia ​

ScopeConfig


set() ​

set(patch): void

Beta

Honoa he whirihora wāhanga. Tukuna null kia muku i tētahi mara kia taea ai te whakahoki ā-ira.

Ngā Tawhā ​

patch ​

Partial<Record<keyof ScopeConfig, string | null | undefined>>

Whakahokia ​

void


resolve() ​

resolve(el?): ResolvedScope

Beta

Whakatau i te rohe whai mana mō tētahi uri (taunoa ki te wāhanga ake o tēnei rohe).

Ngā Tawhā ​

el? ​

Element

Whakahokia ​

ResolvedScope


attachFrame() ​

attachFrame(frame): () => void

Beta

Tukuna te tūnga o tēnei rohe ki frame ā kia tautohatia tonu. Ka whakahokia he mahi wehe.

Ngā Tawhā ​

frame ​

HTMLIFrameElement

Whakahokia ​

() => void


subscribe() ​

subscribe(listener): () => void

Beta

Arohia ngā panonitanga. Ka hoki he mahi wetewete.

Ngā Tawhā ​

listener ​

(config) => void

Whakahokia ​

() => void


destroy() ​

destroy(): void

Beta

Tangohia ngā āhuatanga, wehe i ngā anga, ā, unuhia i te rēhitatanga.

Whakahokia ​

void