Kvaser CanKing GUI Extensions SDK v7.6.1


Kvaser CanKing GUI Extensions SDK / controls / SectionControlProps

Interface: SectionControlProps

Properties of the SectionControl React component.

Properties

children?

optional children?: ReactNode

Children that will be included in this section.


collapsed?

optional collapsed?: boolean

The current collapsed state.


collapsedChange?

optional collapsedChange?: (value) => void

Callback that will be called when this section has been collpsed or expanded.

Parameters

value

boolean

The new collapsed state.

Returns

void


collapsible?

optional collapsible?: boolean

Sets to true if this section should be collapsible.


summary?

optional summary?: string

A summary that will be added to text when the section is collapsed.


text?

optional text?: string

Text to be displayed in the divider.


textAlign?

optional textAlign?: "left" | "right" | "center"

Text alignment to used in the divider.