Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Giao diện: ExampleSrcdocOptions ​

Tùy chọn cho buildExampleSrcdoc.

Thuộc tính ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

URL script trình duyệt để tải sau phần đánh dấu ví dụ (gói tương tác, khi cần).


card? ​

optional card?: boolean

Bao bọc html trong bề mặt chung .pantoken-demo-card (mặc định 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.