Kendo Grid:我们可以 运行 使用 jsfiddle Angular 的例子吗?
Kendo Grid: Can we run example with Angular using jsfiddle?
您好,我希望能够在此处提问时提供一些 Kendo 网格的示例。我放了最基本的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"
您好,我希望能够在此处提问时提供一些 Kendo 网格的示例。我放了最基本的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"