UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

27 lines (26 loc) 1.11 kB
import { CreatorBase } from "./creator-base"; import { Base, SurveyElement } from "survey-core"; import { ElementGetExpandCollapseStateEventReason } from "./creator-events-api"; export interface IExpandCollapseChoice { expandCollapse(val: boolean): void; } export declare class ExpandCollapseManager { private creator; private _lockQuestions; private expandChoicesStates; constructor(creator: CreatorBase); expandCollapseElements(reason: ElementGetExpandCollapseStateEventReason, isCollapsed: boolean, elements?: SurveyElement[]): void; clearExpandChoicesStates(): void; setChoicesState(item: Base, isExpanded: boolean, adorner: IExpandCollapseChoice): void; isChoiceExpanded(item: Base): boolean; private collapsedChoices; expandChoices(): void; collapseChoices(items: Array<Base>): void; disposeChoice(item: Base, adorner: IExpandCollapseChoice): void; private expandCollapseChoices; get questionsLocked(): boolean; lockQuestions(locked: boolean): void; private getCollapsableElements; private sortElements; private updateCollapsed; }