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.
52 lines • 1.7 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sidekickAreaOptions = void 0;
var enums_1 = require("./enums");
var commands_1 = require("./panel/commands");
exports.sidekickAreaOptions = {
panel: commands_1.sidekickAreaOptionsPanel,
/**
* Rename Generic Sidekick Content's menu (Option's name)
*/
renameGenericContentMenu: function (id, newName) {
window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.RENAME_GENERIC_CONTENT_MENU, {
detail: {
id: id,
newName: newName,
},
}));
},
/**
* Rename Generic Sidekick Content's Section (Section that the option belongs name)
*/
renameGenericContentSection: function (id, newName) {
window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.RENAME_GENERIC_CONTENT_SECTION, {
detail: {
id: id,
newName: newName,
},
}));
},
/**
* Set the badge of the sidekick option menu
*/
setMenuBadge: function (id, badgeContent) {
window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.SET_GENERIC_CONTENT_BADGE, {
detail: {
id: id,
badgeContent: badgeContent,
},
}));
},
/**
* Remove the badge of the sidekick option menu
*/
removeMenuBadge: function (id) {
window.dispatchEvent(new CustomEvent(enums_1.SidekickAreaOptionsEnum.REMOVE_GENERIC_CONTENT_BADGE, {
detail: {
id: id,
},
}));
},
};
//# sourceMappingURL=commands.js.map