我正在关注 spread.js 的示例,但似乎无法弄清楚如何使用 angular.js 实现过滤器功能。文档有点薄:
http://helpcentral.componentone.com/NetHelp/SpreadHClientUG/webframe.html#angular.html http://wijmo.com/demo/spreadjs/samples/ExplorerSample/?widget=Filter&sample=Filter
我发现该指令的 datasource 属性上的简单角度过滤器有效,但是如果在控制台中创建错误“错误:[$rootScope:infdig] 10 $digest() 达到了迭代。中止!”
标记
</row>
</rows>
</sheet>
</sheets>
</wij-spread>
<input ng-model="searchText" />
JS
var app = angular.module('SpreadApp', ['wijspread']);
app.controller('MainCtrl', function($scope) {
$scope.Sheets = [{ "sheetName": "Sheet1" },{ "sheetName": "Sheet2" }];
$scope.data = [{"id":"hello"},{"id":"Good bye"}];
});