sbx-react-async-select
v1.0.3
Published
sbx-react-async-select
Downloads
113
Readme
sbx-react-colorfull
npm i --save sbx-react-async-select
import SbxAsyncSelect from 'sbx-react-async-select';
<SbxAsyncSelect
value={52}
searchPattern={value => {
return {
where: [
['id', '=', value],
],
orWhere: [
['message', 'like', `%${value}%`],
]
}
}}
action={function (query){
return Server.get(
'v1/alert/alerts',
query
)
}}
renderValue={(data) => {
return <span title={data.message}>{data.message}</span>;
}}
onChange={(value, row, rows) => {
}}
/>