CSSOverviewProcessingView.js 863 B

12345678
  1. export default class CSSOverviewProcessingView extends UI.Widget{constructor(controller){super();this.registerRequiredCSS('css_overview/cssOverviewProcessingView.css');this._formatter=new Intl.NumberFormat('en-US');this._controller=controller;this._render();}
  2. _render(){const cancelButton=UI.createTextButton(ls`Cancel`,()=>this._controller.dispatchEventToListeners(CssOverview.Events.RequestOverviewCancel),'',true);this.setDefaultFocusedElement(cancelButton);this.fragment=UI.Fragment.build`
  3. <div class="vbox overview-processing-view">
  4. <h1>Processing page</h1>
  5. <div>${cancelButton}</div>
  6. </div>
  7. `;this.contentElement.appendChild(this.fragment.element());this.contentElement.style.overflow='auto';}}
  8. self.CssOverview=self.CssOverview||{};CssOverview=CssOverview||{};CssOverview.CSSOverviewProcessingView=CSSOverviewProcessingView;