How to use the @lumino/virtualdom.hpass function in @lumino/virtualdom

To help you get started, we’ve selected a few @lumino/virtualdom 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 jupyterlab / lumino / packages / widgets / src / tabbar.ts View on Github external
renderIcon(data: IRenderData): VirtualElement | VirtualElementPass {
      const { title } = data;
      let className = this.createIconClass(data);

      if (title.iconRenderer) {
        return hpass('div', {className, title: title.iconLabel}, title.iconRenderer);
      } else {
        return h.div({className}, title.iconLabel);
      }
    }

@lumino/virtualdom

Lumino Virtual DOM

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

86 / 100
Full package analysis

Similar packages