import { ElementEntity } from "../InteractiveEntities/ElementEntity";
import { ElementType } from "../../../constants/UIKitConstants";
/**
 * Represents a label element.
 */
export class LabelElement extends ElementEntity {
    /** The text to display in the label. */
    text;
    /**
     * Creates a new instance of the LabelElement class.
     * @param {string} elementId - The unique identifier of the form element.
     * @param {string} text - The text to display in the label.
     */
    constructor(elementId, text) {
        super(elementId, ElementType.label);
        this.text = text || "";
    }
    /**
     * Returns the text to display in the label.
     * @returns {string} The text to display in the label.
     */
    getText() {
        return this.text;
    }
    static fromJSON(json) {
        return new LabelElement(json.elementId, json.text);
    }
}
//# sourceMappingURL=LabelElement.js.map