import{_ as t,c as e,o as a,N as o}from"./chunks/framework.0799945b.js";const y=JSON.parse('{"title":"Module: features/tabs/tabFamily","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/tabs/tabFamily.md","lastUpdated":null}'),l={name:"api/modules/features/tabs/tabFamily.md"},r=o('
• BaseTabButton: Object
The properties that are added onto a processed TabButtonOptions to create an TabButton.
Name | Type | Description |
---|---|---|
[Component] | GenericComponent | The Vue component used to render this feature. |
type | typeof TabButtonType | A symbol that helps identify features of the same type. |
profectus/src/features/tabs/tabFamily.ts:58
• BaseTabFamily: Object
The properties that are added onto a processed TabFamilyOptions to create an TabFamily.
Name | Type | Description |
---|---|---|
[Component] | GenericComponent | The Vue component used to render this feature. |
[GatherProps] | () => Record <string , unknown > | A function to gather the props the vue component requires for this feature. |
activeTab | Ref <null | CoercableComponent | GenericTab > | The currently active tab, if any. |
id | string | An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates. |
selected | Persistent <string > | The name of the tab that is currently active. |
tabs | Record <string , TabButtonOptions > | All the tabs within this family. |
type | typeof TabFamilyType | A symbol that helps identify features of the same type. |
profectus/src/features/tabs/tabFamily.ts:108
• TabButtonOptions: Object
An object that configures a TabButton.
Name | Type | Description |
---|---|---|
classes? | Computable <Record <string , boolean >> | Dictionary of CSS classes to apply to this feature. |
display | Computable <CoercableComponent > | The label on this button. |
glowColor? | Computable <string > | The color of the glow effect to display when this button is active. |
style? | Computable <StyleValue > | CSS to apply to this feature. |
tab | Computable <CoercableComponent | GenericTab > | The tab to display when this button is clicked. |
visibility? | Computable <boolean | Visibility > | Whether this tab button should be visible. |
profectus/src/features/tabs/tabFamily.ts:40
• TabFamilyOptions: Object
An object that configures a TabFamily.
Name | Type | Description |
---|---|---|
buttonContainerClasses? | Computable <Record <string , boolean >> | A dictionary of CSS classes to apply to the list of buttons for changing tabs. |
buttonContainerStyle? | Computable <StyleValue > | CSS to apply to the list of buttons for changing tabs. |
classes? | Computable <Record <string , boolean >> | Dictionary of CSS classes to apply to this feature. |
style? | Computable <StyleValue > | CSS to apply to this feature. |
visibility? | Computable <boolean | Visibility > | Whether this tab button should be visible. |
profectus/src/features/tabs/tabFamily.ts:92
Ƭ GenericTabButton: Replace
<TabButton
<TabButtonOptions
>, { visibility
: ProcessedComputable
<Visibility
| boolean
> }>
A type that matches any valid TabButton object.
profectus/src/features/tabs/tabFamily.ts:82
Ƭ GenericTabFamily: Replace
<TabFamily
<TabFamilyOptions
>, { visibility
: ProcessedComputable
<Visibility
| boolean
> }>
A type that matches any valid TabFamily object.
profectus/src/features/tabs/tabFamily.ts:138
Ƭ TabButton<T
>: Replace
<T
& BaseTabButton
, { classes
: GetComputableType
<T
["classes"
]> ; display
: GetComputableType
<T
["display"
]> ; glowColor
: GetComputableType
<T
["glowColor"
]> ; style
: GetComputableType
<T
["style"
]> ; tab
: GetComputableType
<T
["tab"
]> ; visibility
: GetComputableTypeWithDefault
<T
["visibility"
], Visible
> }>
An object that represents a button that can be clicked to change tabs in a tabbed interface.
See
Name | Type |
---|---|
T | extends TabButtonOptions |
profectus/src/features/tabs/tabFamily.ts:69
Ƭ TabFamily<T
>: Replace
<T
& BaseTabFamily
, { tabs
: Record
<string
, GenericTabButton
> ; visibility
: GetComputableTypeWithDefault
<T
["visibility"
], Visible
> }>
An object that represents a tabbed interface.
See
Name | Type |
---|---|
T | extends TabFamilyOptions |
profectus/src/features/tabs/tabFamily.ts:129
• Const
TabButtonType: typeof TabButtonType
A symbol used to identify TabButton features.
profectus/src/features/tabs/tabFamily.ts:33
• Const
TabFamilyType: typeof TabFamilyType
A symbol used to identify TabFamily features.
profectus/src/features/tabs/tabFamily.ts:35
▸ createTabFamily<T
>(tabs
, optionsFunc?
): TabFamily
<T
>
Lazily creates a tab family with the given options.
Name | Type |
---|---|
T | extends TabFamilyOptions |
Name | Type | Description |
---|---|---|
tabs | Record <string , () => TabButtonOptions > | - |
optionsFunc? | OptionsFunc <T , BaseTabFamily , GenericTabFamily > | Tab family options. |
TabFamily
<T
>
profectus/src/features/tabs/tabFamily.ts:149
• createTabFamily: <T>(tabs
: Record
<string
, () => TabButtonOptions
>, optionsFunc?
: OptionsFunc
<T
, BaseTabFamily
, GenericTabFamily
>) => TabFamily
<T
>