Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-accessible-treeview

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-accessible-treeview - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

6

package.json
{
"name": "react-accessible-treeview",
"description": "A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.",
"version": "2.3.0",
"version": "2.3.1",
"author": "lissitz (https://github.com/lissitz)",

@@ -75,5 +75,5 @@ "main": "dist/react-accessible-treeview.cjs.js",

"type": "git",
"url": "https://github.com/lissitz/react-accessible-treeview.git"
"url": "https://github.com/dgreene1/react-accessible-treeview.git"
},
"homepage": "https://react-accessible-treeview.netlify.com",
"homepage": "https://dgreene1.github.io/react-accessible-treeview/",
"husky": {

@@ -80,0 +80,0 @@ "hooks": {

@@ -13,4 +13,6 @@ # react-accessible-treeview [![Build Status](https://travis-ci.org/lissitz/react-accessible-treeview.svg?branch=master)](https://travis-ci.org/lissitz/react-accessible-treeview) [![Greenkeeper badge](https://badges.greenkeeper.io/lissitz/react-accessible-treeview.svg)](https://greenkeeper.io/) [![npm version](https://badge.fury.io/js/react-accessible-treeview.svg)](https://badge.fury.io/js/react-accessible-treeview) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

[Documentation and demo](https://react-accessible-treeview.netlify.com)
### Documentation and Demo
- https://dgreene1.github.io/react-accessible-treeview
## Prop Types

@@ -35,2 +37,3 @@

| `selectedIds` | `array` | `[]` | (Controlled) Array with the ids that should be selected |
| `expandedIds` | `array` | `[]` | (Controlled) Array with the ids of branch node that should be expanded |
| `clickAction` | `enum` | `SELECT` | Action to perform on click. One of: EXCLUSIVE_SELECT, FOCUS, SELECT |

@@ -45,8 +48,9 @@ | `onBlur` | `func` | `noop` | Custom onBlur event that is triggered when focusing out of the component as a whole (moving focus between the nodes won't trigger it). |

| Property | Type | Default | Description |
| ---------- | ----------- | -------- | ------------------------------------------------------- |
| `id` | `number` | required | A nonnegative integer that uniquely identifies the node |
| `name` | `string` | required | Used to match on key press |
| `children` | `array[id]` | required | An array with the ids of the children nodes. |
| `parent` | `id` | required | The parent of the node. `null` for the root node |
| Property | Type | Default | Description |
| ---------- | ----------- | -------- | ------------------------------------------------------------------------------------------------ |
| `id` | `number` | required | A nonnegative integer that uniquely identifies the node |
| `name` | `string` | required | Used to match on key press |
| `children` | `array[id]` | required | An array with the ids of the children nodes. |
| `parent` | `id` | required | The parent of the node. `null` for the root node |
| `isBranch` | `boolean` | optional | Used to indicated whether a node is branch to be able load async data onExpand, default is false |

@@ -111,4 +115,8 @@ The first item of the array represents the root node and won't be displayed.

<br/> <br/>
## onLoadData
- _Arguments_: `onLoadData({element, isExpanded, isSelected, isHalfSelected, isDisabled, treeState})`
Note: the function uses the state _after_ inital data is loaded and on expansion .
<br/> <br/>
## Keyboard Navigation

@@ -115,0 +123,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc