mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #3924 - For Tree .d.ts
This commit is contained in:
parent
d5063d36ca
commit
fbb1befa4f
1 changed files with 22 additions and 0 deletions
22
components/lib/tree/Tree.d.ts
vendored
22
components/lib/tree/Tree.d.ts
vendored
|
@ -18,6 +18,7 @@ export declare type TreePassThroughOptionType = TreePassThroughAttributes | ((op
|
||||||
export interface TreePassThroughMethodOptions {
|
export interface TreePassThroughMethodOptions {
|
||||||
props: TreeProps;
|
props: TreeProps;
|
||||||
state: TreeState;
|
state: TreeState;
|
||||||
|
context: TreeContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -200,6 +201,27 @@ export interface TreeState {
|
||||||
filterValue: string;
|
filterValue: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines current options in Tree component.
|
||||||
|
*/
|
||||||
|
export interface TreeContext {
|
||||||
|
/**
|
||||||
|
* Current expanded state of the node as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
expanded: boolean;
|
||||||
|
/**
|
||||||
|
* Current selected state of the node as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
selected: boolean;
|
||||||
|
/**
|
||||||
|
* Current checked state of the node as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
checked: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines valid properties in Tree component.
|
* Defines valid properties in Tree component.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue