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.

33 lines (32 loc) 1.12 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; } export declare class TabbedMenuItem extends Action implements ITabbedMenuItem { showIcon: boolean; showTitle: boolean; 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, plugin: ICreatorPlugin, title?: string, iconName?: string, componentName?: string, index?: number): void; setMode(mode: TabbedMenuMode): void; }