constructor()

in web/src/components/controls/index.js [39:57]


  constructor() {
    super();
    this.hideEvaluators = false;
    this.hideRunButton = false;
    this.hideCopyLinkButton = false;
    this.loading = false;
    this.evaluator = 'transform_processor';
    this.versions = [{version: '-', artifact: 'ottlplayground.wasm'}];
    this.evaluators = [
      {id: 'transform_processor', name: 'Transform processor'},
      {id: 'filter_processor', name: 'Filter processor'},
    ];

    window.addEventListener('keydown', (event) => {
      if (event.shiftKey && event.key === 'Enter') {
        this._notifyRunRequested();
      }
    });
  }