Skip to content

Commit

Permalink
Beta release for virtual scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansArya committed Jan 16, 2019
1 parent fce1479 commit 878d848
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/scarletsframe.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scarletsframe.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/large-list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- I suggest to use simplebar to prevent scroll jump when using chrome -->
<div data-simplebar class="col-md-4 col-md-offset-4 col-xs-6 col-xs-offset-3" style="height: 90vh;">
<ul class="todo-list sf-virtual-list ">
<ul class="todo-list sf-virtual-list sf-list-dynamic">
<li sf-repeat-this="x in list" data-id="{{x.id}}">
<div class="checkbox">
<label>
Expand All @@ -38,7 +38,7 @@
</li>
</ul>
</div>

</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions example/todo-app/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ sf.router.before('todo/index', function(root){
// when self are 'todo-app' is scope

self.weekday = weekday;
// root['todo-app'].weekday = weekday;
// root('todo-app').weekday = weekday;

// The weekday on root['todo-app'] will also be changed
// The weekday on root('todo-app') will also be changed
// Because array is passed by reference on a object
weekday[0] = "Sunday 🍻";
weekday[1] = "Monday 💪🍻";
Expand Down

0 comments on commit 878d848

Please sign in to comment.