Skip to content

Commit 9c436be

Browse files
hyunsookGabriel Schulhof
authored andcommitted
Entries and resources: Listview: Fixed a description and example regarding the listviewbeforefilter of listview on 1-4 branch. And additionally, fixed the theme D using in example16.
1 parent 36ce158 commit 9c436be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

entries/listview.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $( "#mylistview" ).listview({
8383

8484
<h3>Remote autocomplete with listview filter</h3>
8585

86-
<p>To use the listview filter as an autocomplete that taps into remote data sources, you can use the <code>listviewbeforefilter</code> event to dynamically populate a listview as a user types a search query. This is useful when you have a very large data set like cities, zip codes, or products that can't be loaded up-front locally. Use the view source button to see the JavaScript that powers this demo.</p>
86+
<p>To use the filter as an autocomplete that taps into remote data sources, you can use the <code>filterablebeforefilter</code> event to dynamically populate a listview as a user types a search query. This is useful when you have a very large data set like cities, zip codes, or products that can't be loaded up-front locally. Use the view source button to see the JavaScript that powers this demo.</p>
8787

8888
<p>If you have a small list of items, you can use the listview filter reveal option to make an autocomplete with local listview data.</p>
8989

resources/listview/example16.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script src="http://code.jquery.com/mobile/git/jquery.mobile-git.min.js"></script>
1111
<script>
1212
$( document ).on( "pageinit", "#myPage", function() {
13-
$( "#autocomplete" ).on( "listviewbeforefilter", function ( e, data ) {
13+
$( "#autocomplete" ).on( "filterablebeforefilter", function ( e, data ) {
1414
var $ul = $( this ),
1515
$input = $( data.input ),
1616
value = $input.val(),
@@ -50,17 +50,17 @@
5050
.ui-content{
5151
padding:10px 15px 0px 15px;
5252
}
53-
.ui-listview-filter-inset {
54-
margin-top: 0;
55-
}
53+
.ui-filter-inset {
54+
margin-top: 0;
55+
}
5656
</style>
5757
</head>
5858

5959
<body>
6060
<div data-role="page" id="myPage" style="max-height:1040px; min-height:1040px;">
6161
<div role="main" class="ui-content">
6262
<div data-demo-html="true" data-demo-js="true" data-demo-css="true">
63-
<ul id="autocomplete" data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="Find a city..." data-filter-theme="d"></ul>
63+
<ul id="autocomplete" data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="Find a city..." data-filter-theme="a"></ul>
6464
</div>
6565
</div>
6666
</div>

0 commit comments

Comments
 (0)