Interface: ITabsProps<T>
TODO: Get rid of the generic and remove the ComponentProps
Type parameters
Name | Type |
---|---|
T | any |
Hierarchy
ComponentProps
<any
>↳
ITabsProps
↳↳
IEditorGroup
Properties
activeTab
• Optional
activeTab: UniqueId
Defined in
src/components/tabs/index.tsx:33
className
• Optional
className: string
Defined in
src/components/tabs/index.tsx:21
closable
• Optional
closable: boolean
deprecated
For now, we don't need to control the global closable
Defined in
src/components/tabs/index.tsx:27
data
• Optional
data: ITabProps
<any
, any
>[]
Defined in
src/components/tabs/index.tsx:32
editable
• Optional
editable: boolean
deprecated
For now, we don't need to control the global editable
Defined in
src/components/tabs/index.tsx:31
role
• Optional
role: string
Defined in
src/components/tabs/index.tsx:23
style
• Optional
style: CSSProperties
Defined in
src/components/tabs/index.tsx:22
type
• Optional
type: TabsType
Default is line
Defined in
src/components/tabs/index.tsx:37
Methods
onCloseTab
▸ Optional
onCloseTab(key
): void
Parameters
Name | Type |
---|---|
key | UniqueId |
Returns
void
Defined in
src/components/tabs/index.tsx:38
onContextMenu
▸ Optional
onContextMenu(e
, tab
): void
Parameters
Name | Type |
---|---|
e | MouseEvent <Element , MouseEvent > |
tab | ITabProps <any , any > |
Returns
void
Defined in
src/components/tabs/index.tsx:39
onMoveTab
▸ Optional
onMoveTab(tabs
): void
Parameters
Name | Type |
---|---|
tabs | ITabProps <any , any >[] |
Returns
void
Defined in
src/components/tabs/index.tsx:40
onSelectTab
▸ Optional
onSelectTab(key
): void
Parameters
Name | Type |
---|---|
key | UniqueId |
Returns
void