fox-slack-block-builder
Version:
Maintainable code for interactive Slack messages, modals, home tabs, and workflow steps. A must-have for the Slack Block Kit framework.
13 lines (12 loc) • 447 B
TypeScript
export type AccordionState = number[];
export interface AccordionStateManagerParams {
expandedItems: AccordionState;
collapseOnExpand?: boolean;
}
export declare class AccordionStateManager {
private readonly expandedItems;
private readonly collapseOnExpand;
constructor(params: AccordionStateManagerParams);
checkItemIsExpandedByIndex(index: number): boolean;
getNextStateByItemIndex(index: number): AccordionState;
}