Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 13, 2024
1 parent d476d2e commit 5a85ede
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/addons/addons-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ The following table details how to use the API values:

The following options are configurable under the `sidebar` namespace:

| Name | Type | Description | Example Value |
| ------------------ | -------- | ------------------------------------------------------------- | ------------------------------------------------ |
| **showRoots** | Boolean | Display the top-level nodes as a "root" in the sidebar | `false` |
| **collapsedRoots** | Array | Set of root node IDs to visually collapse by default | `['misc', 'other']` |
| **renderLabel** | Function | Create a custom label for tree nodes; must return a ReactNode | `(item) => <abbr title="...">{item.name}</abbr>` |
| Name | Type | Description | Example Value |
| ------------------ | -------- | ------------------------------------------------------------- | ----------------------------------------------------- |
| **showRoots** | Boolean | Display the top-level nodes as a "root" in the sidebar | `false` |
| **collapsedRoots** | Array | Set of root node IDs to visually collapse by default | `['misc', 'other']` |
| **renderLabel** | Function | Create a custom label for tree nodes; must return a ReactNode | `(item, api) => <abbr title="...">{item.name}</abbr>` |

The following options are configurable under the `toolbar` namespace:

Expand Down
10 changes: 5 additions & 5 deletions docs/configure/features-and-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ The following table details how to use the API values:

The following options are configurable under the `sidebar` namespace:

| Name | Type | Description | Example Value |
| ------------------ | -------- | ------------------------------------------------------------- | ------------------------------------------------ |
| **showRoots** | Boolean | Display the top-level nodes as a "root" in the sidebar | `false` |
| **collapsedRoots** | Array | Set of root node IDs to visually collapse by default | `['misc', 'other']` |
| **renderLabel** | Function | Create a custom label for tree nodes; must return a ReactNode | `(item) => <abbr title="...">{item.name}</abbr>` |
| Name | Type | Description | Example Value |
| ------------------ | -------- | ------------------------------------------------------------- | ----------------------------------------------------- |
| **showRoots** | Boolean | Display the top-level nodes as a "root" in the sidebar | `false` |
| **collapsedRoots** | Array | Set of root node IDs to visually collapse by default | `['misc', 'other']` |
| **renderLabel** | Function | Create a custom label for tree nodes; must return a ReactNode | `(item, api) => <abbr title="...">{item.name}</abbr>` |

The following options are configurable under the `toolbar` namespace:

Expand Down

0 comments on commit 5a85ede

Please sign in to comment.