survey-creator-core
Version:
Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.
72 lines (71 loc) • 2.72 kB
TypeScript
import { ISurveyPropertyGridDefinition } from "./definition";
import { JsonObjectProperty } from "survey-core";
import { ISurveyCreatorOptions } from "../creator-settings";
export declare class SurveyQuestionEditorPropertyDefinition {
property: JsonObjectProperty;
title: string;
category: string;
createdFromTabName: boolean;
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;
getPropertyAsCategory(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 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 sortProperties;
private insertProperteisWithVisibleIndex;
}