Skip to content

@jimka/typescript-ui / layout / SectionToggleCallback

Type Alias: SectionToggleCallback()

ts
type SectionToggleCallback = (index: number, open: boolean) => void;

Defined in: src/typescript/lib/layout/Accordion.ts:20

Callback invoked when a section is opened or closed.

Parameters

index

number

Zero-based index of the toggled section.

open

boolean

True if the section is now open.

Returns

void