@manta-eu/react/section-views
Reference for @manta-eu/react/section-views as it is on main.
Type Aliases
ControlledSectionViewsProps
ControlledSectionViewsProps<
T> =SectionViewsBaseProps<T> &object
Type Parameters
T
T extends string
Type Declaration
onValueChange
onValueChange: (
value) =>void
Parameters
value
T
Returns
void
param?
optionalparam?:never
value
value:
T
ParamSectionViewsProps
ParamSectionViewsProps<
T> =SectionViewsBaseProps<T> &SectionViewParamOptions&object
Type Parameters
T
T extends string
Type Declaration
fallback?
optionalfallback?:T
onValueChange?
optionalonValueChange?: (value) =>void
Parameters
value
T
Returns
void
param
param:
string
value?
optionalvalue?:never
SectionView
SectionView<
T> =ScopeTab<T>
Type Parameters
T
T extends string = string
SectionViewPanelProps
SectionViewPanelProps =
object
Properties
children
children:
ReactNode
className?
optionalclassName?:string
value
value:
string
viewsId
viewsId:
string
SectionViewParamOptions
SectionViewParamOptions =
object
Properties
history?
optionalhistory?:"push"|"replace"
SectionViewsBaseProps
SectionViewsBaseProps<
T> =object
Type Parameters
T
T extends string
Properties
className?
optionalclassName?:string
id?
optionalid?:string
isLoading?
optionalisLoading?:boolean
label?
optionallabel?:string
mode?
optionalmode?:SectionViewsMode
views
views:
SectionView<T>[]
wrapBelow?
optionalwrapBelow?:ScopeTabsWrapBreakpoint
SectionViewsMode
SectionViewsMode =
"views"|"filter"
SectionViewsProps
SectionViewsProps<
T> =ControlledSectionViewsProps<T> |ParamSectionViewsProps<T>
Type Parameters
T
T extends string = string
Functions
sectionViewIds()
sectionViewIds(
id,value):object
Parameters
id
string
value
string
Returns
object
panel
panel:
string
tab
tab:
string
SectionViewPanel()
SectionViewPanel(
props):Element
Parameters
props
Returns
Element
SectionViews()
SectionViews<
T>(props):Element|null
Type Parameters
T
T extends string
Parameters
props
Returns
Element | null
useSectionViewParam()
useSectionViewParam<
T>(param,values,fallback,options?): [T, (value) =>void]
Type Parameters
T
T extends string
Parameters
param
string
values
readonly T[]
fallback
T
options?
Returns
[T, (value) => void]