survey-core
Version:
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
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;
}