Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/toolbox/components/web/DockIframeButton.js

29 lines
802 B

// @flow
import { translate } from '../../../base/i18n';
import { IconDock } from '../../../base/icons';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
declare var APP: Object;
/**
* Implementation of a button for notifying integrators that iframe should be docked.
*/
class DockIframeButton extends AbstractButton<AbstractButtonProps, *> {
accessibilityLabel = 'toolbar.accessibilityLabel.dock';
icon = IconDock;
label = 'toolbar.dock';
tooltip = 'toolbar.dock';
/**
* Handles clicking / pressing the button by triggering external api event.
*
* @protected
* @returns {void}
*/
_handleClick() {
APP.API.notifyIframeDockStateChanged(true);
}
}
export default translate(DockIframeButton);