mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3907 - options have changed as context
This commit is contained in:
parent
6005b67be7
commit
5aab120fe5
16 changed files with 75 additions and 24 deletions
12
components/lib/dock/Dock.d.ts
vendored
12
components/lib/dock/Dock.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type DockPassThroughOptionType = DockPassThroughAttributes | ((op
|
|||
export interface DockPassThroughMethodOptions {
|
||||
props: DockProps;
|
||||
state: DockState;
|
||||
context: DockContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -88,6 +89,17 @@ export interface DockState {
|
|||
focusedOptionIndex: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Dock component.
|
||||
*/
|
||||
export interface DockContext {
|
||||
/**
|
||||
* Current active state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
active: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines tooltip options
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue