mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
parent
e5e8c8f387
commit
8f4541fd74
2 changed files with 1 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
The `children` prop accepts an array of child nodes. Each node should contain `id` and `text` properties.
|
||||
|
||||
Optional properties include `disabled`, `expanded`, `icon`, and `children`.
|
||||
Optional properties include `disabled`, `icon`, and `children`.
|
||||
|
||||
A parent node contains `children` while a leaf node does not.
|
||||
|
||||
|
|
|
@ -14,13 +14,11 @@
|
|||
id: 1,
|
||||
text: "Analytics",
|
||||
icon: Analytics,
|
||||
expanded: true,
|
||||
children: [
|
||||
{
|
||||
id: 2,
|
||||
text: "IBM Analytics Engine",
|
||||
icon: Analytics,
|
||||
expanded: true,
|
||||
children: [
|
||||
{ id: 3, text: "Apache Spark", icon: Analytics },
|
||||
{ id: 4, text: "Hadoop", icon: Analytics },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue