react-treeview

WebJar for react-treeview

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

react-treeview
Последняя версия

Последняя версия

0.4.7
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-treeview
WebJar for react-treeview
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/chenglou/react-treeview

Скачать react-treeview

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/react-treeview/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>react-treeview</artifactId>
    <version>0.4.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/react-treeview/
implementation 'org.webjars.bower:react-treeview:0.4.7'
// https://jarcasting.com/artifacts/org.webjars.bower/react-treeview/
implementation ("org.webjars.bower:react-treeview:0.4.7")
'org.webjars.bower:react-treeview:jar:0.4.7'
<dependency org="org.webjars.bower" name="react-treeview" rev="0.4.7">
  <artifact name="react-treeview" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='react-treeview', version='0.4.7')
)
libraryDependencies += "org.webjars.bower" % "react-treeview" % "0.4.7"
[org.webjars.bower/react-treeview "0.4.7"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : react jar [0.12.0,)

Модули Проекта

Данный проект не имеет модулей.

React-treeview npm version Bower version

Easy, light, flexible treeview made with React.

Demos from the demos folder.

install

Npm:

npm install react-treeview

Bower:

bower install react-treeview

The CSS file:

<link rel="stylesheet" type="text/css" href="path/to/react-treeview.css">

API

<TreeView />

The component accepts these props.

  • collapsed: whether the node is collapsed or not.
  • defaultCollapsed: the uncontrolled equivalent to collapsed.
  • nodeLabel: the component or string (or anything renderable) that's displayed beside the TreeView arrow.
  • itemClassName: the class name of the .tree-view_item div.
  • treeViewClassName: the class name of the .tree-view div.
  • childrenClassName: the class name of the .tree-view_children item div.

TreeViews can be naturally nested.

The extra properties transferred onto the arrow, so all attributes and events naturally work on it.

Styling

The CSS is flexible, commented and made to be easily customized. Feel free to inspect the demo's classes and check the short CSS code.

Build It Yourself/Run the Demos

Build: npm install && npm run prerelease

Demos: npm install && npm start && open http://localhost:3000

License

MIT.

Версии библиотеки

Версия
0.4.7
0.3.12