Skip to content

Commit ddc7053

Browse files
committed
fix readme
1 parent 1ac7436 commit ddc7053

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ import { Set } from 'immutable';
2525
import './style.scss';
2626
import {
2727
Filter,
28-
RemoteConfig,
28+
ChoiceRemoteConfig,
2929
FilterList,
3030
StringType,
3131
NumberType,
3232
DateType,
33-
SelectType,
33+
ChoiceType,
3434
ExistsType
3535
} from 'reactmob-filter';
3636

@@ -57,7 +57,7 @@ const countryOptions = {
5757
items: countries,
5858
valueField: 'abbr',
5959
displayField: item => `${item['abbr']} - ${item['name']}`,
60-
/*items: RemoteConfig.create({
60+
/*items: ChoiceRemoteConfig.create({
6161
url: 'http://127.0.0.1:8899/api/v1/countries/',
6262
parser: (data) => {
6363
if (data && data['_embedded']) {
@@ -73,7 +73,7 @@ const fields = new Set([
7373
Filter.create({ name: 'first_name', label: 'First Name', type: StringType }),
7474
Filter.create({ name: 'birthday', label: 'Birthday', type: DateType }),
7575
Filter.create({ name: 'age', label: 'Age', type: NumberType }),
76-
Filter.create({ name: 'country', label: 'Country', type: SelectType, options: countryOptions }),
76+
Filter.create({ name: 'country', label: 'Country', type: ChoiceType, options: countryOptions }),
7777
Filter.create({ name: 'enabled', label: 'Enabled', type: ExistsType }),
7878
]);
7979

0 commit comments

Comments
 (0)