UNPKG

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.

59 lines 2.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AudioSettingsDropdownSeparator = exports.AudioSettingsDropdownOption = void 0; var enums_1 = require("./enums"); // AudioSettingsDropdown Extensible Area var AudioSettingsDropdownOption = /** @class */ (function () { /** * Returns object to be used in the setter for the audio settings dropdown. In this case, * an option. * * @param label - label to be displayed in audio settings dropdown option * @param icon - icon to be used in the option for the dropdown. It goes in the left side of it * @param dataTest - data-test attribute to be used in the option for testing purposes * @param onClick - function to be called when clicking the button * * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5) */ function AudioSettingsDropdownOption(_a) { var id = _a.id, _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.icon, icon = _c === void 0 ? '' : _c, _d = _a.dataTest, dataTest = _d === void 0 ? '' : _d, _e = _a.onClick, onClick = _e === void 0 ? function () { } : _e; var _this = this; this.id = ''; this.setItemId = function (id) { _this.id = "AudioSettingsDropdownOption_".concat(id); }; if (id) { this.id = id; } this.label = label; this.icon = icon; this.dataTest = dataTest; this.onClick = onClick; this.type = enums_1.AudioSettingsDropdownItemType.OPTION; } return AudioSettingsDropdownOption; }()); exports.AudioSettingsDropdownOption = AudioSettingsDropdownOption; var AudioSettingsDropdownSeparator = /** @class */ (function () { /** * Returns object to be used in the setter for the audio settings dropdown. In this case, * a separator. * * @remarks * It will display a horizontal thin black line inside the dropdown. * * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5) */ function AudioSettingsDropdownSeparator() { var _this = this; this.id = ''; this.dataTest = 'audioSettingsDropdownSeparator'; this.setItemId = function (id) { _this.id = "AudioSettingsDropdownSeparator_".concat(id); }; this.type = enums_1.AudioSettingsDropdownItemType.SEPARATOR; } return AudioSettingsDropdownSeparator; }()); exports.AudioSettingsDropdownSeparator = AudioSettingsDropdownSeparator; //# sourceMappingURL=component.js.map