Skip to content

Instantly share code, notes, and snippets.

@ayappaP
ayappaP / ActiveGroupsFluentUI.tsx
Created October 6, 2021 10:14
AddUsersToGroupSlider / AddGroupsToUserSlider Fluent UI
/* eslint-disable @typescript-eslint/no-unused-vars */
import {
DetailsList,
DetailsListLayoutMode,
IColumn,
} from '@fluentui/react/lib/DetailsList';
import {
BaseButton,
CommandBarButton,
DefaultButton,
/*! videojs-resolution-switcher - v0.4.2 - 2021-04-07
* Copyright (c) 2021 [object Object]; Licensed Apache-2.0 */
!function(){"use strict";var a=null;a="undefined"==typeof window.videojs&&"function"==typeof require?require("video.js"):window.videojs,function(a,b){var c,d={ui:!0},e=b.getComponent("MenuItem"),f=b.extend(e,{constructor:function(a,c){c.selectable=!0,e.call(this,a,c),this.src=c.src,a.on("resolutionchange",b.bind(this,this.update))}});f.prototype.handleClick=function(a){e.prototype.handleClick.call(this,a),this.player_.currentResolution(this.options_.label)},f.prototype.update=function(){var a=this.player_.currentResolution();this.selected(this.options_.label===a.label)},e.registerComponent("ResolutionMenuItem",f);var g=b.getComponent("MenuButton"),h=b.extend(g,{constructor:function(a,c){if(this.label=document.createElement("span"),c.label="Quality",g.call(this,a,c),this.el().setAttribute("aria-label","Quality"),this.controlText("Quality"),c.dynamicLabel)b.addClass(this.label,"vjs-resolution-butto