@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
44 lines • 959 B
TypeScript
import { ITreeItemAction } from './ITreeItemActions';
import { IIconProps } from '@fluentui/react/lib/Icon';
/**
* Public properties of the Tree Item
*/
export interface ITreeItem {
/**
* Unique key to identify tree item.
*/
key: string;
/**
* Property field label displayed on top.
*/
label: string;
/**
* Sub label to be displayed on top.
*/
subLabel?: string;
/**
* Custom icon props for the check mark rendered by the checkbox.
*/
iconProps?: IIconProps;
/**
* Disabled state of the tree item.
*/
disabled?: boolean;
/**
* Selectable state of the tree item.
*/
selectable?: boolean;
/**
* Additional data of the tree item.
*/
data?: any;
/**
* List of actions.
*/
actions?: ITreeItemAction[];
/**
* List of child tree items.
*/
children?: ITreeItem[];
}
//# sourceMappingURL=ITreeItem.d.ts.map