@fusion.dev/helix-docs 0.184.0 → 0.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/building-on-the-headless-tier.mdx +2 -2
- package/content/charting.mdx +6 -0
- package/content/graphs.mdx +73 -3
- package/content/iconography.mdx +9 -29
- package/content/metrics.mdx +227 -225
- package/content/react.mdx +6 -0
- package/content/server-rendering.mdx +7 -2
- package/dist/pages.generated.js +1 -1
- package/dist/sources.generated.js +330 -261
- package/package.json +9 -9
package/content/react.mdx
CHANGED
|
@@ -106,6 +106,12 @@ them out as the table before the script runs. The table shows your rows until
|
|
|
106
106
|
page, so React finds the markup it rendered. A development build warns when the
|
|
107
107
|
first page the table draws shows different words from the rows you served.
|
|
108
108
|
|
|
109
|
+
Size the columns with `columns` on the table, such as
|
|
110
|
+
`columns="2fr 1fr max-content"`. The stylesheet can read the table's own
|
|
111
|
+
attribute and not a column's `width`, so the served rows are laid out at the
|
|
112
|
+
widths the table draws, and nothing moves when it upgrades. The checkbox column of a
|
|
113
|
+
`selectable` table and the pagination's row are held from the first paint too.
|
|
114
|
+
|
|
109
115
|
### The React version
|
|
110
116
|
|
|
111
117
|
The bridge is runtime code in `@fusion.dev/helix-core`, which you already have,
|
|
@@ -158,8 +158,13 @@ A data table reads each cell from its column, and the server does not pass it
|
|
|
158
158
|
its columns, so it serves its headings and no values. Write the first page under
|
|
159
159
|
the columns as `helix-table-row` and `helix-table-cell` elements, in the table's
|
|
160
160
|
sort and page size. The table shows them until `rows` holds a row, then draws
|
|
161
|
-
its own rows in their place.
|
|
162
|
-
|
|
161
|
+
its own rows in their place. Size its columns with `columns` on the table, which
|
|
162
|
+
the server sends, so the served rows are laid out at the widths the table draws.
|
|
163
|
+
See [React](./react) for the server component version.
|
|
164
|
+
|
|
165
|
+
A `Table` served with declarative shadow DOM lays out its headings and cells in
|
|
166
|
+
columns before it hydrates. A column of sentences takes its width from its text once the table
|
|
167
|
+
upgrades, so set `columns` on a table that has one.
|
|
163
168
|
|
|
164
169
|
## Write a server spec
|
|
165
170
|
|
package/dist/pages.generated.js
CHANGED
|
@@ -81,7 +81,7 @@ export const docPages = [
|
|
|
81
81
|
title: 'Forms and validation',
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
description: 'Add interactive graphs to your site, styled with your theme and drawn by Sigma.js, cosmos.gl,
|
|
84
|
+
description: 'Add interactive graphs and isometric diagrams to your site, styled with your theme and drawn by Sigma.js, cosmos.gl, three.js, or Helix.',
|
|
85
85
|
section: 'Essentials',
|
|
86
86
|
slug: 'graphs',
|
|
87
87
|
title: 'Graphs',
|