File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ var Testing = React.createClass({
29
29
< div className = "col s12 col-xs-12" >
30
30
< CategorySearch
31
31
componentId = "SearchSensor"
32
- appbaseField = "name"
32
+ dataField = "name"
33
33
categoryField = "brand.raw"
34
34
placeholder = "Search Cars"
35
- autocomplete = { false }
35
+ autosuggest = { false }
36
36
/>
37
37
</ div >
38
38
< div className = "col s12 col-xs-12" >
39
39
< RatingsFilter
40
40
componentId = "RatingsSensor"
41
- appbaseField = "rating"
41
+ dataField = "rating"
42
42
title = "RatingsFilter"
43
43
data = {
44
44
[ { start : 4 , end : 5 , label : "4 stars and up" } ,
@@ -57,25 +57,25 @@ var Testing = React.createClass({
57
57
< div className = "col s6 col-xs-6" >
58
58
< ResultCard
59
59
componentId = "SearchResult"
60
- appbaseField = "name"
60
+ dataField = "name"
61
61
title = "Results"
62
62
from = { 0 }
63
63
size = { 20 }
64
64
onData = { this . onData }
65
65
sortOptions = { [
66
66
{
67
67
label : "Lowest Price First" ,
68
- appbaseField : "price" ,
68
+ dataField : "price" ,
69
69
sortBy : "asc"
70
70
} ,
71
71
{
72
72
label : "Highest Price First" ,
73
- appbaseField : "price" ,
73
+ dataField : "price" ,
74
74
sortBy : "desc"
75
75
} ,
76
76
{
77
77
label : "Most rated" ,
78
- appbaseField : "rating" ,
78
+ dataField : "rating" ,
79
79
sortBy : "desc"
80
80
}
81
81
] }
Original file line number Diff line number Diff line change 7
7
< title > Reactive Search sample</ title >
8
8
<!-- CSS -->
9
9
< link rel ="stylesheet " type ="text/css " href ="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css " />
10
- < link rel ="stylesheet " type ="text/css " href ="https://cdn.rawgit.com/appbaseio/reactivesearch/v0.4.1 /dist/css/style.min.css " />
10
+ < link rel ="stylesheet " type ="text/css " href ="https://cdn.rawgit.com/appbaseio/reactivesearch/master /dist/css/style.min.css " />
11
11
<!-- JavaScript -->
12
12
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js "> </ script >
13
13
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.min.js "> </ script >
14
14
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js "> </ script >
15
15
< script type ="text/javascript " src ="https://maps.google.com/maps/api/js?key=AIzaSyC-v0oz7Pay_ltypZbKasABXGiY9NlpCIY&libraries=places "> </ script >
16
- < script type ="text/javascript " src ="https://cdn.rawgit.com/appbaseio/reactivesearch/v0.4.1 /umd/ReactiveSearch .js "> </ script >
16
+ < script type ="text/javascript " src ="https://cdn.rawgit.com/appbaseio/reactivesearch/master /umd/reactivesearch .js "> </ script >
17
17
</ head >
18
18
< body >
19
19
< div id ="root "> </ div >
You can’t perform that action at this time.
0 commit comments