UNPKG

survey-pdf

Version:

survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.

29 lines (28 loc) 1.28 kB
import { IQuestion, QuestionTextModel } from 'survey-core'; import { IRect, DocController } from '../doc_controller'; import { IPdfBrick, PdfBrick, TranslateXFunction } from './pdf_brick'; export declare class TextFieldBrick extends PdfBrick { protected isQuestion: boolean; protected fieldName: string; protected value: string; protected placeholder: string; isReadOnly: boolean; protected isMultiline: boolean; protected inputType: string; protected question: QuestionTextModel; constructor(question: IQuestion, controller: DocController, rect: IRect, isQuestion: boolean, fieldName: string, value: string, placeholder: string, isReadOnly: boolean, isMultiline: boolean, inputType: string); private renderColorQuestion; renderInteractive(): Promise<void>; protected shouldRenderFlatBorders(): boolean; protected getShouldRenderReadOnly(): boolean; private _textBrick; get textBrick(): IPdfBrick; set textBrick(val: IPdfBrick); renderReadOnly(): Promise<void>; unfold(): IPdfBrick[]; translateX(func: TranslateXFunction): void; protected setXLeft(val: number): void; protected setXRight(val: number): void; protected setYTop(val: number): void; protected setYBottom(val: number): void; }