Manta Developers
GitHub
Menu

@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?

optional param?: never

value

value: T


ParamSectionViewsProps

ParamSectionViewsProps<T> = SectionViewsBaseProps<T> & SectionViewParamOptions & object

Type Parameters

T

T extends string

Type Declaration

fallback?

optional fallback?: T

onValueChange?

optional onValueChange?: (value) => void

Parameters
value

T

Returns

void

param

param: string

value?

optional value?: never


SectionView

SectionView<T> = ScopeTab<T>

Type Parameters

T

T extends string = string


SectionViewPanelProps

SectionViewPanelProps = object

Properties

children

children: ReactNode

className?

optional className?: string

value

value: string

viewsId

viewsId: string


SectionViewParamOptions

SectionViewParamOptions = object

Properties

history?

optional history?: "push" | "replace"


SectionViewsBaseProps

SectionViewsBaseProps<T> = object

Type Parameters

T

T extends string

Properties

className?

optional className?: string

id?

optional id?: string

isLoading?

optional isLoading?: boolean

label?

optional label?: string

mode?

optional mode?: SectionViewsMode

views

views: SectionView<T>[]

wrapBelow?

optional wrapBelow?: 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

SectionViewPanelProps

Returns

Element


SectionViews()

SectionViews<T>(props): Element | null

Type Parameters

T

T extends string

Parameters

props

SectionViewsProps<T>

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?

SectionViewParamOptions = {}

Returns

[T, (value) => void]