Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Interface: ExampleSrcdocOptions ​

Muligheder for buildExampleSrcdoc.

Egenskaber ​

cssUrls ​

cssUrls: readonly string[]

Stylesheet URL'er som skal indlæses i iframe'ens <head> (tokens, komponenter, utilities, ikoner, …).


scriptUrls? ​

optional scriptUrls?: readonly string[]

Browser-skript-URL'er, der skal indlæses efter eksempelmarkup (interaktionspakker, når det er nødvendigt).


card? ​

optional card?: boolean

Indpak html i den delte .pantoken-demo-card overflade (standard true)).


dir? ​

optional dir?: "ltr" | "rtl"

Text direction for the isolated document's <html> (default "ltr") — a srcdoc never inherits it from the embedding page.