# deni-react-treeview-amir

> A modern, themable and configurable treeview for React.

Latest version **0.2.23** (published 2019-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install deni-react-treeview-amir
pnpm add deni-react-treeview-amir
yarn add deni-react-treeview-amir
bun add deni-react-treeview-amir
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.23 |
| Published | 2019-08-29 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.3 MB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Amirreza Sharifi |
| Maintainers | amir-ashy |
| Keywords | facebook, react, treeview, tree-view, tree, view, treenode, tree-node, ui, deni-react-treeview |

## Links

- npm: https://www.npmjs.com/package/deni-react-treeview-amir
- Repository: https://github.com/amir-ashy/deni-react-treeview
- Issues: https://github.com/amir-ashy/deni-react-treeview/issues
- npm.io page: https://npm.io/package/deni-react-treeview-amir

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [react-icons](https://npm.io/package/react-icons.md) ^2.2.7
- [create-react-class](https://npm.io/package/create-react-class.md) ^15.6.2
- [react-router-with-props](https://npm.io/package/react-router-with-props.md) ^0.1.1
- [react-syntax-highlighter](https://npm.io/package/react-syntax-highlighter.md) ^6.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.23 (latest) — 2019-08-29
- 0.2.22 — 2019-08-29
- 0.2.21 — 2019-08-27
- 0.2.20 — 2019-08-26

## README

# deni-react-treeview-amir
A modern, themable and configurable treeview for React, Which support RTL


[site](https://denimar.github.io/deni-react-treeview/), [examples](https://denimar.github.io/deni-react-treeview/examples)


![alt text](https://denimar.github.io/deni-react-treeview/images/deni-react-treeview.png)


TODO: In the future I will implement the tests, Cloud CI.

## Installing with NPM

```
npm install deni-react-treeview-amir --save (React 16)
```

## Usage

Added to your react component
```html
    <TreeView url="https://denifakedata.herokuapp.com/tree/countries" rtl={true}/> 
```
For more details: [examples](https://denimar.github.io/deni-react-treeview/examples)

## API
[documentation](https://denimar.github.io/deni-react-treeview/api.html)

## Features
* Cross-Browser.
* Binding to a JSON (locally, remotely and lazy-load)
* Predefined Themes
* Theme Customization
* Events
* Checkboxes
* And so on...

## Properties
* autoLoad ```(boolean)```
* lazyLoad ```(boolean)```
* marginItems ```(integer)```
* selectRow ```(boolean)```
* showCheckbox ```(boolean)```
* showIcon ```(boolean)```
* showRoot ```(boolean)```
* theme ```(string)```
* rtl ```(boolean)```

## Events
* OnRenderItem
* onBeforeLoad
* onAfterLoad
* onSelectItem
* onExpanded
* onColapsed
* onLazyLoad
* onCheckItem

#### json example

```javascript
[
  {
    id: 100,
    text: 'Fruits',
    children: [
      {
        id: 101,
        text: 'Orange',
        isLeaf: true
      },
      {
        id: 102,
        text: 'Banana',
        isLeaf: true
      }
    ]
  },
  {
    id: 200,
    text: 'Vegetables',
    children: [
      {
        id: 201,
        text: 'Carrot',
        isLeaf: true
      },
      {
        id: 202,
        text: 'Tomato',
        isLeaf: true
      }
    ]
  }
]
```

## License

[MIT.](https://raw.githubusercontent.com/denimar/deni-react-treeview/master/LICENSE-MIT)

## Author

[Amirreza Sharifi](https://github.com/amir-ashy) (sharifi.amirreza92@gmail.com)

---
_Source: https://npm.io/package/deni-react-treeview-amir · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
