ados-rcm 1.1.108 → 1.1.110
Sign up to get free protection for your applications and to get access to all the features.
@@ -80,6 +80,12 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
80
80
|
* Description : selectDisabled of ATree. if string is returned, it will be used as tooltip.
|
81
81
|
*/
|
82
82
|
selectDisabled?: (item: T) => boolean | string | undefined;
|
83
|
+
/**
|
84
|
+
* selectUnused? : (item: T) => boolean
|
85
|
+
*
|
86
|
+
* Description : selectUnused of ATree. if true is returned, it cannot be selected.
|
87
|
+
*/
|
88
|
+
selectUnused?: (item: T) => boolean;
|
83
89
|
/**
|
84
90
|
* useSearch? : TUseValues<IATreeSearchResult<T> | undefined>
|
85
91
|
*
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { TUseValues } from '../../AHooks/useValues';
|
3
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
3
4
|
import { TIcons } from '../AIcon/AIcon';
|
4
5
|
import { Resources } from '../AResource/AResource';
|
5
6
|
import { IATreeItem, IATreeSearchResult } from './ATree';
|
6
|
-
import { TCanCallback } from '../../AUtils/cbF';
|
7
7
|
export interface IATreeItemProps<T> {
|
8
8
|
isEqual: (a: T, b: T) => boolean;
|
9
9
|
item: T;
|
10
10
|
selectDisabled?: (item: T) => boolean | string | undefined;
|
11
|
+
selectUnused?: (item: T) => boolean;
|
11
12
|
isParentDisabled?: boolean | string;
|
12
13
|
extIndents?: (props: IIndentProps) => {
|
13
14
|
collapsed?: React.ReactNode;
|