survey-pdf
Version:
Renders JSON-driven SurveyJS forms and their responses as PDF documents in the browser or Node.js: fillable interactive PDF forms (AcroForm) or static printouts.
32 lines (31 loc) • 1.17 kB
TypeScript
import { IRect, DocController } from '../doc_controller';
import { IPdfBrickOptions, PdfBrick } from './pdf_brick';
import { ISelectionInputStyle } from '../style/types';
export interface IRadioItemBrickOptions extends IPdfBrickOptions {
checked: boolean;
index: number;
updateOptions?: (options: any) => void;
}
export interface IRadiogroupWrapContext {
fieldName: string;
readOnly: boolean;
updateOptions: (options: any) => void;
}
export declare class RadioGroupWrap {
private controller;
private options;
private _radioGroup;
constructor(controller: DocController, options: IRadiogroupWrapContext);
addToPdf(color: string): void;
get radioGroup(): any;
get readOnly(): boolean;
get fieldName(): string;
}
export declare class RadioItemBrick extends PdfBrick {
private radioGroupWrap;
protected options: IRadioItemBrickOptions;
protected style: ISelectionInputStyle;
constructor(controller: DocController, rect: IRect, radioGroupWrap: RadioGroupWrap, options: IRadioItemBrickOptions, style: ISelectionInputStyle);
renderInteractive(): Promise<void>;
renderReadOnly(): Promise<void>;
}