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.

38 lines (37 loc) 1.3 kB
import { Action, AdaptiveActionContainer, IAction } from "survey-core"; import { CreatorBase } from "./creator-base"; import { ICreatorPlugin } from "./creator-settings"; export interface ITabbedMenuItem extends IAction { componentContent: string; renderTab?: () => any; pluginCreator: () => ICreatorPlugin; } export declare class TabbedMenuItem extends Action implements ITabbedMenuItem { showIcon: boolean; showTitle: boolean; private pluginValue; get plugin(): ICreatorPlugin; get data(): any; pluginCreator: () => ICreatorPlugin; constructor(item: ITabbedMenuItem); componentContent: string; renderTab?: () => any; getRootCss(): string; getTitleCss(): string; getIconCss(): string; get canShrink(): boolean; get hasTitle(): boolean; get hasIcon(): boolean; doAction(): boolean; } export declare enum TabbedMenuMode { Icons = 1, Titles = 2 } export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> { private creator; private currentMode; constructor(creator: CreatorBase); addTab(name: string, pluginCreator: () => ICreatorPlugin, title?: string, iconName?: string, componentName?: string, index?: number): TabbedMenuItem; setMode(mode: TabbedMenuMode): void; }