mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Refactor #4149 - Column & TreeTable
This commit is contained in:
parent
b06f90d883
commit
ee637daf39
7 changed files with 70 additions and 15 deletions
34
components/lib/treetable/TreeTable.d.ts
vendored
34
components/lib/treetable/TreeTable.d.ts
vendored
|
@ -23,6 +23,7 @@ export interface TreeTablePassThroughMethodOptions {
|
|||
instance: any;
|
||||
props: TreeTableProps;
|
||||
state: TreeTableState;
|
||||
context: TreeTableContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -213,14 +214,6 @@ export interface TreeTablePassThroughOptions {
|
|||
* Uses to pass attributes to the header row's DOM element.
|
||||
*/
|
||||
headerRow?: TreeTablePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the header filter row's DOM element.
|
||||
*/
|
||||
headerFilterRow?: TreeTablePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the header filter cell's DOM element.
|
||||
*/
|
||||
headerFilterCell?: TreeTablePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the tbody's DOM element.
|
||||
*/
|
||||
|
@ -330,6 +323,31 @@ export interface TreeTableState {
|
|||
d_editing: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in TreeTable component.
|
||||
*/
|
||||
export interface TreeTableContext {
|
||||
/**
|
||||
* Current index state of the item.
|
||||
*/
|
||||
index: number;
|
||||
/**
|
||||
* Current frozen state of the row as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
frozen: boolean;
|
||||
/**
|
||||
* Current selectable state of the row as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
selectable: boolean;
|
||||
/**
|
||||
* Current selected state of the row as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
selected: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in TreeTable component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue