@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
25 lines (24 loc) • 724 B
JavaScript
import { TypedBuilder as n } from "./TypedBuilder.js";
class e extends n {
subType;
/**
* Sets the component's value type to an array of strings.
* @returns the modified instance of the builder.
*/
get ofString() {
const t = new e().setup({ ...this.options, ...this.annotation, type: "array", editor: "arrayOfString" });
return t.subType = "string", t;
}
/**
* Sets the component's value type to an array of objects.
* @returns the modified instance of the builder.
*/
get ofObject() {
const t = new e().setup({ ...this.options, ...this.annotation, type: "array" });
return t.subType = "object", t;
}
}
export {
e as ArrayBuilder
};
//# sourceMappingURL=ArrayBuilder.js.map