mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3983 - For TabView
This commit is contained in:
parent
0ddf82f471
commit
6e65824aeb
3 changed files with 29 additions and 7 deletions
12
components/lib/tabpanel/TabPanel.d.ts
vendored
12
components/lib/tabpanel/TabPanel.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type TabPanelPassThroughOptionType = TabPanelPassThroughAttribute
|
|||
export interface TabPanelPassThroughMethodOptions {
|
||||
props: TabPanelProps;
|
||||
parent: TabViewPassThroughOptions;
|
||||
context: TabPanelContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,6 +103,17 @@ export interface TabPanelProps {
|
|||
*/
|
||||
pt?: TabPanelPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in TabPanel component.
|
||||
*/
|
||||
export interface TabPanelContext {
|
||||
/**
|
||||
* Current index of the tab.
|
||||
*/
|
||||
index: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in TabPanel slots.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue