bigbluebutton-html-plugin-sdk
Version:
This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.
38 lines • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppsGalleryEntry = void 0;
var enums_1 = require("./enums");
var AppsGalleryEntry = /** @class */ (function () {
/**
* Returns object to be used in the setter for the Apps Gallery. In this case,
* an entry.
*
* @param name - name to be displayed in the apps gallery entry.
* @param icon - icon to be displayed in the apps gallery entry.
* @param dataTest - string attribute to be used for testing
* @param onClick - function to be called when clicking the entry.
*
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
*/
function AppsGalleryEntry(_a) {
var id = _a.id, name = _a.name, icon = _a.icon, _b = _a.dataTest, dataTest = _b === void 0 ? '' : _b, onClick = _a.onClick;
this.id = '';
this.name = '';
this.type = enums_1.AppsGalleryType.ENTRY;
this.icon = '';
if (id) {
this.id = id;
}
this.name = name;
this.icon = icon;
this.dataTest = dataTest;
this.onClick = onClick;
}
AppsGalleryEntry.prototype.setItemId = function (id) {
this.id = id;
};
return AppsGalleryEntry;
}());
exports.AppsGalleryEntry = AppsGalleryEntry;
exports.default = AppsGalleryEntry;
//# sourceMappingURL=component.js.map