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.
73 lines • 3.05 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericContentSidekickArea = exports.GenericContentMainArea = void 0;
var enums_1 = require("./enums");
// GenericContent Extensible Area
var GenericContentMainArea = /** @class */ (function () {
/**
* Returns an object that when used in the setter as a generic content will be rendered
* over the meeting main presentation.
*
* @param contentFunction - function that gives the html element to render the content of
* the generic component
*
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
*/
function GenericContentMainArea(_a) {
var id = _a.id, contentFunction = _a.contentFunction;
var _this = this;
this.id = '';
this.setItemId = function (id) {
_this.id = id;
};
if (id) {
this.id = id;
}
this.contentFunction = contentFunction;
this.type = enums_1.GenericContentType.MAIN_AREA;
}
return GenericContentMainArea;
}());
exports.GenericContentMainArea = GenericContentMainArea;
var GenericContentSidekickArea = /** @class */ (function () {
/**
* Returns an object that when used in the setter as a generic content will be rendered
* in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
* which is added to the sidebar navigation and, when clicked, toggles the rendering of the
* given generic sidekick content.
*
* @param contentFunction - function that gives the html element to render the content of
* the generic content. It must return the root element where the generic content was rendered.
* @param name - the label of the associated sidebar navigation button
* @param section - section name under which the associated sidebar navigation button will be
* displayed
* @param buttonIcon - the icon of the associated sidebar navigation button
* @param open - boolean value to decide wether to start open
*
* @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
*/
function GenericContentSidekickArea(_a) {
var id = _a.id, contentFunction = _a.contentFunction, name = _a.name, section = _a.section, buttonIcon = _a.buttonIcon, open = _a.open;
var _this = this;
this.id = '';
this.name = '';
this.section = '';
this.buttonIcon = '';
this.open = false;
this.setItemId = function (id) {
_this.id = id;
};
if (id) {
this.id = id;
}
this.contentFunction = contentFunction;
this.name = name;
this.section = section;
this.buttonIcon = buttonIcon;
this.type = enums_1.GenericContentType.SIDEKICK_AREA;
this.open = open;
}
return GenericContentSidekickArea;
}());
exports.GenericContentSidekickArea = GenericContentSidekickArea;
//# sourceMappingURL=component.js.map