How to use the @blueprintjs/labs.Select.ofType function in @blueprintjs/labs

To help you get started, we’ve selected a few @blueprintjs/labs 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 FarmBot / Farmbot-Web-App / src / ui / filter_search.tsx View on Github external
import * as React from "react";
import { t } from "i18next";
import { Button, Classes, MenuItem } from "@blueprintjs/core";
import { ISelectItemRendererProps, Select } from "@blueprintjs/labs";

import { DropDownItem } from "./fb_select";
import { NULL_CHOICE } from "./new_fb_select";

const SelectComponent = Select.ofType();

type PossibleReferences =
  | "Sequences"
  | "Regimens";

interface ParentMenu {
  title: string;
  value: string | number;
  subMenus: DropDownItem[];
  reference: PossibleReferences;
}

interface Props {
  items: DropDownItem[];
  selectedItem: DropDownItem;
  onChange: (item: DropDownItem) => void;
github FarmBot / Farmbot-Web-App / webpack / ui / filter_search.tsx View on Github external
import * as React from "react";
import { t } from "i18next";
import { Button, Classes, MenuItem } from "@blueprintjs/core";
import { ISelectItemRendererProps, Select } from "@blueprintjs/labs";
import { DropDownItem } from "./fb_select";

const SelectComponent = Select.ofType();

interface Props {
  items: DropDownItem[];
  selectedItem: DropDownItem;
  onChange: (item: DropDownItem) => void;
  nullChoice: DropDownItem;
}

interface State {
  item?: DropDownItem | undefined;
  minimal?: boolean;
  resetOnSelect?: boolean;
}

export class FilterSearch extends React.Component> {

@blueprintjs/labs

Incubator for unstable and in-development Blueprint components

Apache-2.0
Latest version published 6 years ago

Package Health Score

66 / 100
Full package analysis