UNPKG
@sgnl-pro/react-tree
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.4
0.1.3
0.1.2
A tree view component for React
@sgnl-pro/react-tree
/
src
/
types.ts
15 lines
(12 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
interface
ITreeItem
{
id
:
string
;
label
:
string
;
children
?:
ITreeItem
[] |
null
; }
export
enum
SelectionType
{
Child
=
'child'
,
Parent
=
'parent'
,
All
=
'all'
,
None
=
'none'
, }
export
type
SelectAction
=
'click'
|
'check'
;