Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document useShadowDOM #60

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions blog/2019-05-20-new-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ tags: [hello, podium]
Welcome to our blog. Our documentation site has just gotten an refreshing update
which also give us a blog.

<!--truncate-->

This space will be used to document version changes and give insight in tips and
tricks not really belonging in the documentation itself.
50 changes: 27 additions & 23 deletions docs/api/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,17 +640,19 @@ assets.

#### options

| option | type | default | required | details |
| -------------- | --------- | --------- | -------- | -------------------------------------------------------------------------------------------- |
| value | `string` | | &check; | Relative or absolute URL to the JavaScript asset |
| prefix | `boolean` | `false` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
| type | `string` | `default` | | What type of JavaScript (eg. esm, default, cjs) |
| referrerpolicy | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| crossorigin | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| integrity | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| nomodule | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |
| async | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |
| defer | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |
| option | type | default | required | details |
| -------------- | ----------------------------------------------------- | -------------------- | -------- | -------------------------------------------------------------------------------------------- |
| value | `string` | | &check; | Relative or absolute URL to the JavaScript asset |
| strategy | `"beforeInteractive" \| "afterInteractive" \| "lazy"` | `"afterInteractive"` | | Specify how the JavaScript should be loaded |
| scope | `"content" \| "fallback" \| "all"` | `"all"` | | Specify what routes the JavaScript should apply to |
| prefix | `boolean` | `false` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
| type | `string` | `default` | | What type of JavaScript (eg. esm, default, cjs) |
| referrerpolicy | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| crossorigin | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| integrity | `string` | | | Correlates to the same attribute on a HTML `<script>` element |
| nomodule | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |
| async | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |
| defer | `boolean` | `false` | | Correlates to the same attribute on a HTML `<script>` element |

##### value

Expand Down Expand Up @@ -925,18 +927,20 @@ assets.

#### options

| option | type | default | required | details |
| ----------- | --------- | ------------ | -------- | -------------------------------------------------------------------------------------------- |
| value | `string` | | &check; | Relative or absolute URL to the CSS asset |
| prefix | `boolean` | `false` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
| crossorigin | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| disabled | `boolean` | `false` | | Correlates to the same attribute on a HTML `<link>` element |
| hreflang | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| title | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| media | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| type | `string` | `text/css` | | Correlates to the same attribute on a HTML `<link>` element |
| rel | `string` | `stylesheet` | | Correlates to the same attribute on a HTML `<link>` element |
| as | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| option | type | default | required | details |
| ----------- | --------------------------------------------------------------------- | --------------------- | -------- | -------------------------------------------------------------------------------------------- |
| value | `string` | | &check; | Relative or absolute URL to the CSS asset |
| strategy | `"beforeInteractive" \| "afterInteractive" \| "lazy" \| "shadow-dom"` | `"beforeInteractive"` | | Specify how the CSS should be loaded |
| scope | `"content" \| "fallback" \| "all"` | `"all"` | | Specify what routes the CSS should apply to |
| prefix | `boolean` | `false` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
| crossorigin | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| disabled | `boolean` | `false` | | Correlates to the same attribute on a HTML `<link>` element |
| hreflang | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| title | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| media | `string` | | | Correlates to the same attribute on a HTML `<link>` element |
| type | `string` | `text/css` | | Correlates to the same attribute on a HTML `<link>` element |
| rel | `string` | `stylesheet` | | Correlates to the same attribute on a HTML `<link>` element |
| as | `string` | | | Correlates to the same attribute on a HTML `<link>` element |

##### value

Expand Down
Loading
Loading