我希望在此处提问时能够提供一些剑道网格的示例。我把最基本的一个here ,但什么也没显示。
代码是:
<div data-ng-app="app">
<div data-ng-controller="Grid as vm">
<div kendo-grid='grid' k-options="vm.options"></div>
</div>
</div>
(function () {
angular.module("app", ["kendo.directives"])
.controller("Grid", Grid);
function Grid() {
var vm = this;
var gridData = [{
col1: 'data1',
col2: 'data2'
}, {
col1: 'data1',
col2: 'data2'
}];
vm.options = {
dataSource: gridData,
editable: true
};
}
})();
这应该可行吗?我错过了什么吗? (示例在本地运行)。
最佳答案
您只需要更改脚本包含在 fiddle 中的方式。使用“No wrap”代替“onLoad”。
关于javascript - 剑道网格 : Can we run example with Angular using jsfiddle?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28450520/