Skip to content

Commit

Permalink
more wordings
Browse files Browse the repository at this point in the history
  • Loading branch information
smmr-dn committed Nov 20, 2024
1 parent eea17dc commit ac6a3c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/src/content/docs/tree.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The `expander` prop in the `TreeNode` component allows for customization of the

The tree allows end users to select one or multiple nodes within its structure. This feature is useful for actions on specific nodes, such as editing, deleting or viewing details.

Similar to node expansion, a state variable is needed to track the currently selected node. This state is updated via the `onSelect` callback, which is triggered whenever a user selects a node. The `isSelected` flag must be set in the `getNode` function to correctly update each node's selection state.
Similar to node expansion, a state variable can be used to track the currently selected node. This state can be updated via the `onSelect` callback which is triggered whenever a user selects a node. The `isSelected` flag must be set in the `getNode` function to correctly update each node's selection state.

<LiveExample src='Tree.selection.jsx'>
<AllExamples.TreeSelectionExample client:load />
Expand All @@ -141,7 +141,7 @@ Each data level line may begin with an eye icon to toggle visibility. In this co

### Virtualization

For trees with a large number of nodes, enabling virtualization can improve performance. To enable virtualization, the `enableVirtualization` property of the tree component can be set to `"true"`.
For trees with a large number of nodes, enabling virtualization can improve performance. To enable virtualization, the `enableVirtualization` property of the tree component can be set to `true`.

<LiveExample src='Tree.virtualization.jsx'>
<AllExamples.TreeVirtualizationExample client:load />
Expand Down

0 comments on commit ac6a3c9

Please sign in to comment.