@vendasta/store
Version:
Components and data for Store
18 lines (17 loc) • 492 B
JavaScript
var FieldBase = /** @class */ (function () {
function FieldBase(options) {
this.id = options.id;
this.label = options.label;
this.required = !!options.required;
this.description = options.description || null;
}
FieldBase.prototype.getLabel = function () {
var fieldLabel = this.label;
if (this.required) {
fieldLabel += ' *';
}
return fieldLabel;
};
return FieldBase;
}());
export { FieldBase };