mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Early virtual directive stuff
Don't use any of this yet.
This commit is contained in:
24
js/ext/angular/src/directive/ionicVirtRepeat.js
vendored
Normal file
24
js/ext/angular/src/directive/ionicVirtRepeat.js
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('ionic.ui.virtRepeat', [])
|
||||
|
||||
.directive('virtRepeat', function() {
|
||||
return {
|
||||
require: ['?ngModel', '^virtualList'],
|
||||
transclude: 'element',
|
||||
priority: 1000,
|
||||
terminal: true,
|
||||
compile: function(element, attr, transclude) {
|
||||
return function($scope, $element, $attr, ctrls) {
|
||||
var virtualList = ctrls[1];
|
||||
var _this = this;
|
||||
|
||||
virtualList.listView.renderViewport = function(high, low, start, end) {
|
||||
console.log('RENDER VIEWPORT', high, low, start, end);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})(ionic);
|
||||
Reference in New Issue
Block a user