Skip to content

Commit

Permalink
add basic wrapper to Kendo Scheduler - intend to go back and add feat…
Browse files Browse the repository at this point in the history
…ures as possible
  • Loading branch information
rniemeyer committed Mar 30, 2014
1 parent b29d1ad commit 90ad546
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 2 deletions.
10 changes: 10 additions & 0 deletions build/knockout-kendo.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,16 @@ createBinding({
}
});

createBinding({
async: true,
name: "kendoScheduler",
watch: {
data: function(value, options) {
ko.kendo.setDataSource(this, value, options);
}
}
});

createBinding({
name: "kendoSlider",
defaultOption: VALUE,
Expand Down
2 changes: 1 addition & 1 deletion build/knockout-kendo.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
9 changes: 9 additions & 0 deletions spec/knockout-kendoScheduler.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe("ko.bindingHandlers.kendoScheduler", function(){
//standard cases
ko.kendo.generateBindingSpecs("kendoScheduler", {
html: "<div></div>"
});

//additional kendoScheduler cases

});
3 changes: 2 additions & 1 deletion spec/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<script type="text/javascript" src="knockout-kendoNumericTextBox.spec.js"></script>
<script type="text/javascript" src="knockout-kendoPanelBar.spec.js"></script>
<script type="text/javascript" src="knockout-kendoProgressBar.spec.js"></script>
<script type="text/javascript" src="knockout-kendoRangeSlider.js"></script>
<script type="text/javascript" src="knockout-kendoRangeSlider.spec.js"></script>
<script type="text/javascript" src="knockout-kendoScheduler.spec.js"></script>
<script type="text/javascript" src="knockout-kendoSlider.spec.js"></script>
<script type="text/javascript" src="knockout-kendoSplitter.spec.js"></script>
<script type="text/javascript" src="knockout-kendoTabStrip.spec.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions src/knockout-kendo.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ kendo = kendo || window.kendo;

//import "knockout-kendoRangeSlider.js"

//import "knockout-kendoScheduler.js"

//import "knockout-kendoSlider.js"

//import "knockout-kendoSplitter.js"
Expand Down
9 changes: 9 additions & 0 deletions src/knockout-kendoScheduler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
createBinding({
async: true,
name: "kendoScheduler",
watch: {
data: function(value, options) {
ko.kendo.setDataSource(this, value, options);
}
}
});

0 comments on commit 90ad546

Please sign in to comment.