Skip to content

Commit

Permalink
Merge pull request #60 from podium-lib/use-shadow-dom
Browse files Browse the repository at this point in the history
docs: document useShadowDOM
  • Loading branch information
wkillerud authored Dec 6, 2024
2 parents 7bde2df + 4fbe06b commit b398a21
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 61 deletions.
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

0 comments on commit b398a21

Please sign in to comment.