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.
73 lines (72 loc) • 2.69 kB
TypeScript
import { ISurveyPropertyGridDefinition } from "./definition";
import { JsonObjectProperty } from "survey-core";
import { ISurveyCreatorOptions } from "../creator-settings";
export declare class SurveyQuestionEditorPropertyDefinition {
className: string;
property: JsonObjectProperty;
title: string;
category: string;
onSameLine: boolean;
index: number;
definedIndex: number;
get name(): string;
}
export declare class SurveyQuestionEditorTabDefinition {
name: string;
iconName: string;
title: string;
visible: boolean;
index: number;
properties: Array<SurveyQuestionEditorPropertyDefinition>;
parentName: string;
parent: SurveyQuestionEditorTabDefinition;
tabs: Array<SurveyQuestionEditorTabDefinition>;
}
export declare class SurveyQuestionProperties {
obj: any;
options: ISurveyCreatorOptions;
private parentObj;
private parentProperty;
private propertyGridDefinition;
private showModeValue;
private properties;
private propertiesHash;
private tabs;
private unusedProperties;
constructor(obj: any, options?: ISurveyCreatorOptions, className?: string, showMode?: string, parentObj?: any, parentProperty?: JsonObjectProperty, propertyGridDefinition?: ISurveyPropertyGridDefinition);
getAllVisiblePropertiesNames(includeUnused: boolean): Array<string>;
protected getIsPropertyVisible(prop: JsonObjectProperty): boolean;
protected getDynamicClassName(): string;
getProperty(propertyName: string): JsonObjectProperty;
get showMode(): string;
get isEmpty(): boolean;
private getClassDefintion;
private getDefinitionClassCopy;
private fillPropertiesHash;
private isJSONPropertyVisible;
getTabByName(tabName: string): SurveyQuestionEditorTabDefinition;
getTabs(): Array<SurveyQuestionEditorTabDefinition>;
getProperties(tab: SurveyQuestionEditorTabDefinition): Array<JsonObjectProperty>;
private buildTabs;
private sortTabsByIndex;
private setParentTabs;
private addPropertyIntoTab;
private setTabProperties;
private movePropertiesToNextProperties;
private getTabByPropertyName;
private getNextToNameProperty;
private isPropertyOnSameLine;
private getPropertyByNameInTab;
private getTabOrCreate;
private setUsedProperties;
private getAllDefinitionsByClass;
private getAllDefinitionsByClassCore;
private getAllDefinitionsByClassSingleCore;
private getJsonPropertyCategory;
private get isColumnObj();
private getUnusedProperties;
private addNonTabProperties;
private getClassDepth;
private sortProperties;
private insertProperteisWithVisibleIndex;
}