How to use the plywood.find function in plywood

To help you get started, we’ve selected a few plywood 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 geo-opensource / pivot / src / client / views / link-view / link-view.tsx View on Github external
renderPresets() {
    const { essence } = this.state;
    const PresetDropdown = Dropdown.specialize();

    var selected = find(latestPresets, p => p.selection.equals(essence.getPrimaryTimeSelection()));
    return  {
          if (a === b) return true;
          if (!a !== !b) return false;
          return a.selection === b.selection;
        }
      }
      renderItem={(p) => p ? p.name : ""}
      onSelect={this.selectPreset.bind(this)}
    />;
  }
github hortonworks / streamline / pivot / src / server / utils / settings-manager / settings-manager.ts View on Github external
private getClusterManagerFor(clusterName: string): ClusterManager {
    return find(this.clusterManagers, (clusterManager) => clusterManager.cluster.name === clusterName);
  }
github geo-opensource / pivot / src / server / utils / settings-manager / settings-manager.ts View on Github external
private getClusterManagerFor(clusterName: string): ClusterManager {
    return find(this.clusterManagers, (clusterManager) => clusterManager.cluster.name === clusterName);
  }