How to use the gl-react.listSurfaces function in gl-react

To help you get started, we’ve selected a few gl-react 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 gre / gl-react / packages / cookbook / src / Inspector / index.js View on Github external
<div>
        <header>
          <div>
            <select value="{surface">
              <option value="">(none)</option>
              {listSurfaces().map(surface =&gt; (
                <option value="{surface.id}">
                  {surface.getGLName()}
                </option>
              ))}
            </select>
            <label>
              <input value="{Visitors.get().indexOf(inspectorVisitorLogger)" type="checkbox">
              console logs
            </label>
          </div>
          {headerBody}
        </header></div>
github gre / gl-react / packages / cookbook / src / Inspector / index.js View on Github external
detectSurface() {
    const surface = listSurfaces()[0];
    this.setSurface(surface);
  }