Socket
Book a DemoInstallSign in
Socket

@rlyle1179/react-treeview

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rlyle1179/react-treeview

A modern, themable and configurable treeview for React.

0.2.20
latest
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
0
Weekly downloads
 
Created
Source

deni-react-treeview

A modern, themable and configurable treeview for React

site, examples

alt text

TODO: In the future I will implement the tests, Cloud CI.

Installing with NPM

npm install deni-react-treeview --save (React 16)

or

npm install deni-react-treeview@0.1.13 --save (React 15)

Usage

Added to your react component

    <TreeView url="https://denifakedata.herokuapp.com/tree/countries" /> 

For more details: examples

API

documentation

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)

Events

  • OnRenderItem
  • onBeforeLoad
  • onAfterLoad
  • onSelectItem
  • onExpanded
  • onColapsed
  • onLazyLoad
  • onCheckItem

json example

[
  {
    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.

Author

Denimar de Moraes (denimar@gmail.com) is a full-stack developper at the HBSis IT Solutions, Blumenau, Santa Catarina, Brazil.

Keywords

facebook

FAQs

Package last updated on 14 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.