|
| 1 | +<script> |
| 2 | + import { TreeView, toHierarchy } from "carbon-components-svelte"; |
| 3 | + import Analytics from "carbon-icons-svelte/lib/Analytics.svelte"; |
| 4 | +
|
| 5 | + let nodesFlat = [ |
| 6 | + { id: 0, text: "AI / Machine learning", icon: Analytics }, |
| 7 | + { id: 1, text: "Analytics" }, |
| 8 | + { id: 2, text: "IBM Analytics Engine", pid: 1 }, |
| 9 | + { id: 3, text: "Apache Spark", pid: 2 }, |
| 10 | + { id: 4, text: "Hadoop", pid: 2 }, |
| 11 | + { id: 5, text: "IBM Cloud SQL Query", pid: 1 }, |
| 12 | + { id: 6, text: "IBM Db2 Warehouse on Cloud", pid: 1 }, |
| 13 | + { id: 7, text: "Blockchain" }, |
| 14 | + { id: 8, text: "IBM Blockchain Platform", pid: 7 }, |
| 15 | + { id: 9, text: "Databases" }, |
| 16 | + { id: 10, text: "IBM Cloud Databases for Elasticsearch", pid: 9 }, |
| 17 | + { id: 11, text: "IBM Cloud Databases for Enterprise DB", pid: 9 }, |
| 18 | + { id: 12, text: "IBM Cloud Databases for MongoDB", pid: 9 }, |
| 19 | + { id: 13, text: "IBM Cloud Databases for PostgreSQL", pid: 9 }, |
| 20 | + { id: 14, text: "Integration", disabled: true }, |
| 21 | + { id: 15, text: "IBM API Connect", disabled: true, pid: 14 }, |
| 22 | + ]; |
| 23 | +</script> |
| 24 | + |
| 25 | +<TreeView |
| 26 | + labelText="Cloud Products" |
| 27 | + nodes={toHierarchy(nodesFlat, (node) => node.pid)} |
| 28 | +/> |
0 commit comments