I am building a form based upon the dynamic form example at https://angular.io/guide/dynamic-form
I have not been able to find any information on how to set up other form element types beside the example's 'textbox' and 'dropdown'. Their code sample:
import { QuestionBase } from './question-base';
export class TextboxQuestion extends QuestionBase<string> {
controlType = 'textbox';
type: string;
constructor(options: {} = {}) {
super(options);
this.type = options['type'] || '';
}
}
has a variable "controlType" that I would think should be able to take other values. Is there some documentation of it out there that I just haven't been able to find? Or are there alternate ways of adding in textareas, checkboxes, or radio buttons to the dynamic form setup?