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.