How to use the perfect-scrollbar/jquery function in perfect-scrollbar

To help you get started, we’ve selected a few perfect-scrollbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gravitational / teleport / web / src / app / components / player / player.jsx View on Github external
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import $ from 'jQuery';
import initScroll from 'perfect-scrollbar/jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactSlider from 'react-slider';
import GrvTerminal from 'app/lib/term/terminal';
import { TtyPlayer } from 'app/lib/term/ttyPlayer';
import Indicator from './../indicator.jsx';
import { ErrorIndicator, WarningIndicator } from './items';

initScroll($);

class Terminal extends GrvTerminal{
  constructor(tty, el){
    super({ el, scrollBack: 1000 });
    this.tty = tty;
  }

  connect(){
  }

  open() {
    super.open();
    $(this._el).perfectScrollbar();
  }

  resize(cols, rows) {