Skip to content

pantoken-root / formats/scope/src / PantokenScope

Interfáhta: PantokenScope ​

Behta

Eallin skopma sáhttuheapmi ovddas elementas.

Properties ​

element ​

readonly element: HTMLElement

Behta

Elementa mii čájeha skopmabeaivvi atributtat.


instanceId ​

readonly instanceId: string

Behta

Produktta mii logga boađe.

Metodat ​

get() ​

get(): ScopeConfig

Behta

Skopma borggut konfiguráhtsa — maid son čájet, ii ge mii ii leat nagodat.

Gullii / Gávdnat ​

ScopeConfig


set() ​

set(patch): void

Behta

Liiddu buorre jaoalkkaskonfiguráhtsa. Ođđa null-gieldda dát čájehuvvan mielddis ja nagodat eará dál.

Parametera ​

patch ​

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

Gullii / Gávdnat ​

void


resolve() ​

resolve(el?): ResolvedScope

Behta

Ráhkista effektiva skopma almmuhuvvan (default-barggii dán skopma oainnuid elementa).

Parametera ​

el? ​

Element

Gullii / Gávdnat ​

ResolvedScope


attachFrame() ​

attachFrame(frame): () => void

Behta

Gávdnet dán skopma stáhta frame-iin ja čuvvo govvidit syncas. Boađe barggodat fárusvuohta.

Parametera ​

frame ​

HTMLIFrameElement

Gullii / Gávdnat ​

() => void


subscribe() ​

subscribe(listener): () => void

Behta

Observiherat muhtin. Boađe unregister-funktuvdna (unsubscribe) fárusvuohta.

Parametera ​

listener ​

(config) => void

Gullii / Gávdnat ​

() => void


destroy() ​

destroy(): void

Behta

Rundo atributtat, lohkad frammat ja čájeha unregistrere.

Gullii / Gávdnat ​

void