survey-core
Version:
A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.
12 lines (11 loc) • 485 B
TypeScript
import { Question } from "./question";
export declare class RendererFactory {
static Instance: RendererFactory;
private renderersHash;
private defaultHash;
unregisterRenderer(questionType: string, rendererAs: string): void;
registerRenderer(questionType: string, renderAs: string, renderer: any, useAsDefault?: boolean): void;
getRenderer(questionType: string, renderAs: string): string;
getRendererByQuestion(question: Question): any;
clear(): void;
}