UNPKG

react-antd-admin-panel

Version:

Modern TypeScript-first React admin panel builder with Ant Design 6

42 lines 770 B
/** * Abstract base class for all component builders * Implements common builder pattern functionality */ export class BaseBuilder { _key; _config = {}; /** * Set a unique key for the component */ key(k) { this._key = k; return this; } /** * Set disabled state */ disabled(value) { this._config.disabled = value; return this; } /** * Set hidden state */ hidden(value) { this._config.hidden = value; return this; } /** * Get the component key */ getKey() { return this._key; } /** * Get the configuration */ getConfig() { return this._config; } } //# sourceMappingURL=BaseBuilder.js.map