class Checkboxes extends Field {
protected _fields: HTMLInputElement[];
+ constructor(fieldId: string) {
+ super(fieldId);
+
+ this._fields = Array.from(document.querySelectorAll(`input[name="${escapeAttributeSelector(this._fieldId)}[]"]`));
+ }
+
protected _getData(): FormBuilderData {
const values = this._fields
.map((input) => {
}
protected _readField(): void {
- this._fields = Array.from(document.querySelectorAll(`input[name="${escapeAttributeSelector(this._fieldId)}[]"]`));
+ /* Does nothing. */
}
}
Field_1 = tslib_1.__importDefault(Field_1);
class Checkboxes extends Field_1.default {
_fields;
+ constructor(fieldId) {
+ super(fieldId);
+ this._fields = Array.from(document.querySelectorAll(`input[name="${(0, Util_1.escapeAttributeSelector)(this._fieldId)}[]"]`));
+ }
_getData() {
const values = this._fields
.map((input) => {
};
}
_readField() {
- this._fields = Array.from(document.querySelectorAll(`input[name="${(0, Util_1.escapeAttributeSelector)(this._fieldId)}[]"]`));
+ /* Does nothing. */
}
}
return Checkboxes;