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.
30 lines (29 loc) • 1.22 kB
TypeScript
import { Base, IHeader, ILoadFromJSONOptions, ISaveToJSONOptions, ISurvey, ITheme, HorizontalAlignment, VerticalAlignment } from "survey-core";
export declare class HeaderModel extends Base implements IHeader {
static primaryColorStr: string;
height: number;
mobileHeight: number;
inheritWidthFrom: "survey" | "container";
textAreaWidth: number;
overlapEnabled: boolean;
backgroundImage: string;
backgroundImageOpacity: number;
backgroundImageFit: "contain" | "cover" | "fill" | "tile";
logoPositionX: HorizontalAlignment;
logoPositionY: VerticalAlignment;
titlePositionX: HorizontalAlignment;
titlePositionY: VerticalAlignment;
descriptionPositionX: HorizontalAlignment;
descriptionPositionY: VerticalAlignment;
owner: ITheme;
getSurvey(live?: boolean): ISurvey;
fromJSON(json: any, options?: ILoadFromJSONOptions): void;
setCssVariables(cssVariables?: {
[index: string]: string;
}): void;
toJSON(options?: ISaveToJSONOptions): any;
saveToThemeJSON(json: ITheme, options?: ISaveToJSONOptions): void;
private setHeaderBackgroundColorCssVariable;
private getBackgroundColorSwitchByValue;
getType(): string;
}