← Commit history

Merge PR #77: adom-table: allowlist `colorby` (colour a column from the data)

Colby Knox ·7fcac6c449 ·1mo ago ·parent 27201f7
2 files changed +2−2
README.md+1−1
@@ -55,4 +55,4 @@ Five load from adom/component-widgets and take a JSON `src`; adom-symbol-variant | `::adom-heatsink-via{src="..."}` | thermal via layout | | `::adom-symbol-variants{src="..."}` | alternate schematic-symbol layouts (2-column, square, grouped, chip outline), generated in the browser | | `::adom-footprint-variants{src="..."}` | footprint-variant family (baseline, heatsink vias, 300 µm solder balls, rounded pads), parsed live from the page's `.kicad_mod` files; takes an adom-footprint `variants.json` `src` — loads from john/footprint-widgets |-| `::adom-table{src="..."}` | any JSON array as a filterable, sortable table — generic, not component-specific; `columns` `heading` `filter` `facet` `sort` `dim` `mark` |+| `::adom-table{src="..."}` | any JSON array as a filterable, sortable table — generic, not component-specific; `columns` `heading` `filter` `facet` `sort` `dim` `mark` `colorby` |
widgets.json+1−1
@@ -19,5 +19,5 @@     "element": "adom-footprint-variants", "attrs": ["src", "variant", "heading"] },   { "name": "adom-table", "mode": "frontend",     "script": "https://wiki.adom.inc/adom/component-widgets/render/widgets/adom-table.js",-    "element": "adom-table", "attrs": ["src", "columns", "heading", "filter", "facet", "sort", "dim", "mark"] }+    "element": "adom-table", "attrs": ["src", "columns", "heading", "filter", "facet", "sort", "dim", "mark", "colorby"] } ]