forked from p3drosola/Backbone.VirtualCollection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
25 lines (21 loc) · 710 Bytes
/
sample.html
File metadata and controls
25 lines (21 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<title>Backbone VirtualCollection</title>
<script src="node_modules/underscore/underscore.js"></script>
<script src="node_modules/backbone/backbone.js"></script>
<script src="dist/backbone.virtual-collection.js"></script>
<script type="text/javascript" charset="utf-8">
var houses = new Backbone.Collection([
{color: 'white', with_garden: true},
{color: 'white', with_garden: false},
{color: 'red', with_garden: false},
{color: 'white', with_garden: true, renovated: true}
]);
var red_houses = new VirtualCollection(houses, {
filter: {color: 'red'}
});
</script>
</head>
<body>
</body>
</html>