mapcomplete/Customizations/Questions/PhoneNumberQuestion.ts

18 lines
618 B
TypeScript
Raw Normal View History

2020-07-27 00:14:41 +02:00
import {UIElement} from "../../UI/UIElement";
import Translations from "../../UI/i18n/Translations";
2020-07-31 17:38:03 +02:00
import {TagRenderingOptions} from "../TagRenderingOptions";
2020-07-27 00:14:41 +02:00
export class PhoneNumberQuestion extends TagRenderingOptions {
constructor(category: string | UIElement) {
super({
question: Translations.t.general.questions.phoneNumberOf.Subs({category: category}),
freeform: {
renderTemplate: Translations.t.general.questions.phoneNumberIs.Subs({category: category}),
template: "$phone$",
key: "phone"
}
});
}
}