"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LinkField = void 0;
const internal_1 = require("../internal");
/**
* Represents a link field.
* @extends ReadOnlyField
*/
class LinkField extends internal_1.ReadOnlyField {
// properties below will be added in 23.08
// private imageUrl?: string;
/**
* Creates an instance of the LinkField class.
* @param {string} label The label of the link field.
* @param {string} value The value of the link field.
* @param {string} linkLabel The link label of the link field.
*/
constructor(label, value, linkLabel) {
super();
this.displayType = 'link';
this.setLabel(label);
this.setValue(value);
this.linkLabel = linkLabel;
}
/**
* Gets the link label of the link field.
* @returns {string} The link label of the link field.
*/
getLinkLabel() {
return this.linkLabel;
}
/**
* Sets the link label of the link field.
* @param {string} linkLabel The link label to set.
* @returns The updated instance of the LinkField.
*/
setLinkLabel(linkLabel) {
this.linkLabel = linkLabel;
return this;
}
}
exports.LinkField = LinkField;