From 7cc0e86cdb6e519c2c71311eff048ee9766740f4 Mon Sep 17 00:00:00 2001 From: Marc Anton Dahmen Date: Thu, 27 Jul 2023 21:06:03 +0200 Subject: [PATCH] update readme --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 62f7f70..90cd7de 100644 --- a/README.md +++ b/README.md @@ -173,20 +173,20 @@ const tree = new SortableTree({ }); ``` -| Name | Description | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `nodes` | An array of [node objects](#the-nodes-object-in-detail) (required) | -| `element` | The container element where the tree will be created in (required) | -| `icons` | An object of custom icons in the shape of `{ collapsed: '+', open: '-' }` to indicate that a node is open or collapsed | -| `styles` | An optional object of [CSS classes](#customizing-styles-and-icons) that are used for the tree elements | -| `lockRootLevel` | Prevent moving nodes to the root level (default: `true`) | -| `disableSorting` | Disable sorting functionality | -| `initCollapseLevel` | The level of nesting that will be initially collapsed (default: `2`) | -| `stateId` | The id that is used to persist the folding state of the tree across browser reloads (optional) | -| `renderLabel` | A function that will be used to [render a node's label](#rendering-nodes) | -| `onChange` | An async [function](#the-onchange-function) that is called when the tree has changed | -| `onClick` | An async [function](#the-onclick-function) that is called when a node label has been clicked | -| `confirm` | An async function that is used to [confirm](#confirming-changes) any changes in the tree | +| Name | Description | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `nodes` | An array of [node objects](#the-nodes-object-in-detail) (required) | +| `element` | The container element where the tree will be created in (required) | +| `icons` | An object of [custom icons](#customizing-styles-and-icons) in the shape of `{ collapsed: '+', open: '-' }` to indicate that a node is open or collapsed | +| `styles` | An optional object of [CSS classes](#customizing-styles-and-icons) that are used for the tree elements | +| `lockRootLevel` | Prevent moving nodes to the root level (default: `true`) | +| `disableSorting` | Disable sorting functionality | +| `initCollapseLevel` | The level of nesting that will be initially collapsed (default: `2`) | +| `stateId` | The id that is used to persist the folding state of the tree across browser reloads (optional) | +| `renderLabel` | A function that will be used to [render a node's label](#rendering-nodes) | +| `onChange` | An async [function](#the-onchange-function) that is called when the tree has changed | +| `onClick` | An async [function](#the-onclick-function) that is called when a node label has been clicked | +| `confirm` | An async function that is used to [confirm](#confirming-changes) any changes in the tree | ### The `nodes` Object in Detail