mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
docs(treeview): update examples
This commit is contained in:
parent
82905ac696
commit
efddbbd3cc
12 changed files with 82 additions and 82 deletions
|
@ -3,16 +3,16 @@
|
|||
|
||||
let activeId = 0;
|
||||
let selectedIds = [0, 7, 9];
|
||||
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,7 +40,7 @@
|
|||
id: 14,
|
||||
text: "Integration",
|
||||
disabled: true,
|
||||
children: [{ id: 15, text: "IBM API Connect", disabled: true }],
|
||||
nodes: [{ id: 15, text: "IBM API Connect", disabled: true }],
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
@ -49,7 +49,7 @@
|
|||
labelText="Cloud Products"
|
||||
activeId="{activeId}"
|
||||
selectedIds="{selectedIds}"
|
||||
children="{children}"
|
||||
nodes="{nodes}"
|
||||
let:node
|
||||
>
|
||||
<span
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue