How to use the react-bootstrap-typeahead.default function in react-bootstrap-typeahead

To help you get started, we’ve selected a few react-bootstrap-typeahead 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 haimich / billy / src / main / BillsEditorComponent.tsx View on Github external
import FileActions from '../common/models/FileActionsModel'
import FileListComponent from '../common/components/FileListComponent'
import { FileEndabledComponent } from '../common/components/FileEnabledComponent'
import ItemListComponent from '../common/components/ItemListComponent'
import { amountType } from '../common/components/PreTaxNetAmountComponent'
import { billExists } from '../common/services/billsService'
import { listBillTypes, getBillTypeById, createBillType } from '../common/services/billTypesService'
import { listCustomers, createCustomer, getCustomerById, deleteCustomerById } from '../common/services/customersService'
import t from '../common/helpers/i18n'
import { numberFormatterDb, numberFormatterView, dateFormatterView, dateFormatterDb, formatTaxrate } from '../common/ui/formatters'
import { getPreTaxAmount } from '../common/ui/preNetVat'
import { enableTypeaheadFeatures, getInputs, resetFormValidationErrors, addFormValidation, revalidateInput } from '../common/ui/forms'
import Textarea from 'react-textarea-autosize'

const Datetime = require('react-datetime')
const Typeahead = require('react-bootstrap-typeahead').default

interface State {
  id?: number
  invoice_id: string
  date_created?: string
  date_paid?: string
  amount?: string
  amountType?: amountType
  taxrate?: string
  billItemId: number
  comment: string
  selectedCustomer?: Customer[]
  selectedBillType?: BillTypeModel[]
  customerList: Customer[]
  billTypeList: BillTypeModel[]
  isNew: boolean
github haimich / billy / src / main / ExpensesEditorComponent.tsx View on Github external
import FileActions from '../common/models/FileActionsModel'
import FileListComponent from '../common/components/FileListComponent'
import ItemListComponent from '../common/components/ItemListComponent'
import { amountType } from '../common/components/PreTaxNetAmountComponent'
import { FileEndabledComponent } from '../common/components/FileEnabledComponent'
import { listExpenseTypes, getExpenseTypeById, createExpenseType } from '../common/services/expenseTypesService'
import t from '../common/helpers/i18n'
import { numberFormatterDb, numberFormatterView, dateFormatterView, dateFormatterDb, formatTaxrate} from '../common/ui/formatters'
import { stringIsEmpty } from '../common/helpers/text'
import { hasDecimals } from '../common/helpers/math'
import { enableTypeaheadFeatures, getInputs, resetFormValidationErrors, addFormValidation, revalidateInput } from '../common/ui/forms'
import { getCalculatedAmount, getPreTaxAmount, getVatAmount } from '../common/ui/preNetVat'
import Textarea from 'react-textarea-autosize'

const Datetime = require('react-datetime')
const Typeahead = require('react-bootstrap-typeahead').default

interface State {
  id?: number
  selectedExpenseType?: ExpenseType[]
  amount?: string
  amountType?: amountType
  taxrate?: string
  date?: string
  expenseItemId: number
  comment?: string
  expenseTypeList: ExpenseType[]
  isNew: boolean
  isDirty: boolean
  fileActions: FileActions
}