Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

ממשק: ExampleSrcdocOptions ​

אפשרויות עבור buildExampleSrcdoc.

תכונות ​

cssUrls ​

cssUrls: readonly string[]

Stylesheet URLs to load into the iframe's <head> (tokens, components, utilities, icons, …).


scriptUrls? ​

optional scriptUrls?: readonly string[]

כתובות URL של סקריפטים לדפדפן לטעינה לאחר סימון הדוגמה (חבילות אינטראקציה, במידת הצורך).


card? ​

optional card?: boolean

עטוף html בתוך המעטפת המשותפת .pantoken-demo-card (ברירת מחדל 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.