From 39e66a96eca274ad8cf9a43d67b4408eb6143c75 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 20 Oct 2024 15:30:56 -0700 Subject: [PATCH] docs(treeview): update examples --- docs/src/pages/framed/TreeView/TreeView.svelte | 14 +++++++------- .../pages/framed/TreeView/TreeViewActive.svelte | 14 +++++++------- .../framed/TreeView/TreeViewCollapseAll.svelte | 14 +++++++------- .../framed/TreeView/TreeViewCollapseNodes.svelte | 14 +++++++------- .../pages/framed/TreeView/TreeViewCompact.svelte | 14 +++++++------- .../pages/framed/TreeView/TreeViewExpandAll.svelte | 14 +++++++------- .../framed/TreeView/TreeViewExpandNodes.svelte | 14 +++++++------- .../pages/framed/TreeView/TreeViewExpanded.svelte | 14 +++++++------- .../src/pages/framed/TreeView/TreeViewIcons.svelte | 14 +++++++------- .../framed/TreeView/TreeViewMultiselect.svelte | 14 +++++++------- .../pages/framed/TreeView/TreeViewShowNode.svelte | 10 +++++----- docs/src/pages/framed/TreeView/TreeViewSlot.svelte | 14 +++++++------- 12 files changed, 82 insertions(+), 82 deletions(-) diff --git a/docs/src/pages/framed/TreeView/TreeView.svelte b/docs/src/pages/framed/TreeView/TreeView.svelte index 4489cb9c..08079b44 100644 --- a/docs/src/pages/framed/TreeView/TreeView.svelte +++ b/docs/src/pages/framed/TreeView/TreeView.svelte @@ -3,16 +3,16 @@ let activeId = ""; let selectedIds = []; - let children = [ + let nodes = [ { id: 0, text: "AI / Machine learning" }, { id: 1, text: "Analytics", - children: [ + nodes: [ { id: 2, text: "IBM Analytics Engine", - children: [ + nodes: [ { id: 3, text: "Apache Spark" }, { id: 4, text: "Hadoop" }, ], @@ -24,12 +24,12 @@ { id: 7, text: "Blockchain", - children: [{ id: 8, text: "IBM Blockchain Platform" }], + nodes: [{ id: 8, text: "IBM Blockchain Platform" }], }, { id: 9, text: "Databases", - children: [ + nodes: [ { id: 10, text: "IBM Cloud Databases for Elasticsearch" }, { id: 11, text: "IBM Cloud Databases for Enterprise DB" }, { id: 12, text: "IBM Cloud Databases for MongoDB" }, @@ -40,14 +40,14 @@ id: 14, text: "Integration", disabled: true, - children: [{ id: 15, text: "IBM API Connect", disabled: true }], + nodes: [{ id: 15, text: "IBM API Connect", disabled: true }], }, ]; @@ -53,7 +53,7 @@ bind:this="{treeview}" bind:expandedIds labelText="Cloud Products" - children="{children}" + nodes="{nodes}" />