@hpcc-js/dgrid 2.29.0 → 2.30.3
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/README.md +24 -1
- package/dist/index.es6.js +25863 -25966
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +25866 -25969
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +355 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +10 -26
- package/src/RowFormatter.ts +1 -1
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/README.md
CHANGED
|
@@ -7,4 +7,27 @@ The **dgrid** package contains the following visualizations:
|
|
|
7
7
|
* Table
|
|
8
8
|
|
|
9
9
|
## Note for Rollup.js users
|
|
10
|
-
**dgrid** is dependent on **dgrid-shim** which requires some special configuration when bundling with Rollup.js - please see [dgrid-shim](../dgrid-shim) for more information.
|
|
10
|
+
**dgrid** is dependent on **dgrid-shim** which requires some special configuration when bundling with Rollup.js - please see [dgrid-shim](../dgrid-shim/README.md) for more information.
|
|
11
|
+
|
|
12
|
+
<ClientOnly>
|
|
13
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
14
|
+
<div id="target" style="height:600px">
|
|
15
|
+
</div>
|
|
16
|
+
<script type="module">
|
|
17
|
+
// Note: dgrid does not support "import" - this will fail
|
|
18
|
+
import { Table } from "@hpcc-js/dgrid";
|
|
19
|
+
|
|
20
|
+
new Table()
|
|
21
|
+
.target("target")
|
|
22
|
+
.columns(["Mother", "Father", { label: "Children", columns: ["Name", "sex", "age"] }, { label: "Pets", columns: ["Name", "type"] }])
|
|
23
|
+
.data([
|
|
24
|
+
["<b>Jane</b>", "John", [["Mary", "f", 4], ["Bob", "m", 6], ["Tim", "m", 1]], [["Spot", "dog"], ["Smelly", "cat"], ["Goldie", "Fish"], ["Hammy", "Hamster"]]],
|
|
25
|
+
["Penelope", "Alex", [["Bill", "m", 1]], []],
|
|
26
|
+
["Jill", "Marcus", [], [["Flappy", "parrot"], ["Stinky", "cat"], ["Rolf", "dog"]]],
|
|
27
|
+
["Susan", "Robert", [["Jack", "m", 4], ["Alice", "f", 6]], []]
|
|
28
|
+
])
|
|
29
|
+
.render()
|
|
30
|
+
;
|
|
31
|
+
</script>
|
|
32
|
+
</hpcc-vitepress>
|
|
33
|
+
</ClientOnly>
|