mccb

1.0.9 • Public • Published

Multi-column combobox

  • Setver-side render
  • Search
  • Autocomplete

PROPS

| No | Property name | Type | Required | Default | Description

| 1 | className | string | no | | | 2 | name | string | yes | | Name of field | 3 | type | string | yes | | Type of field (number, text) | 4 | readOnly | boolean | no | fasle | | 5 | component | | | | the component Mccb {Mccb} | 6 | apiObject | object | yes | | the object returned by apisauce.create() | 7 | apiPath | string | yes | | path of API (base URL is not included) | 8 | apiBody | object | yes | {} | to pass to apisauce | 9 | textField | string | yes | | field to display | 10 | shownColumns | array of objects | yes | | columns to show, for example: shownColumns={[{Header: 'ID', accessor: 'id',},{Header: 'Category', accessor: 'cat_id',},]} | 11 | defauttBoundString | number or string | no | null | value to set at the start | 12 | handleAfterValueSelected | function | no | null | callback to get row values from parent component | 13 | setFirstRowAsDefault | boolean | no | false | set the 1st row as field.value at the start

Readme

Keywords

Package Sidebar

Install

npm i mccb

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

194 kB

Total Files

8

Last publish

Collaborators

  • tanleica