Skip to content

Commit

Permalink
Fix Calendar month.content example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihaylo committed Aug 25, 2016
1 parent 38ec95a commit 112d9a7
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions docs/api/javascript/ui/calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,32 @@ note that a check for an empty `date` is needed, as the widget can work with a n

#### Example - specify cell template as a string

<div id="calendar"></div>
<script id="cell-template" type="text/x-kendo-template">
<div class="#= data.value < 10 ? 'exhibition' : 'party' #"></div>
#= data.value #
</script>
<script>
$("#calendar").kendoCalendar({
month: {
content: $("#cell-template").html()
}
});
</script>

<style>
.exhibition{
background-color: #9DD0E0;
color:black;
}
.party{
color: red;
background-color: #ccc;
}
</style>
<body>

<div id="calendar"></div>
<script id="cell-template" type="text/x-kendo-template">
<div class="#= data.value < 10 ? 'exhibition' : 'party' #">
#= data.value #
</div>
</script>
<script>
$("#calendar").kendoCalendar({
month: {
content: $("#cell-template").html()
}
});
</script>

### month.empty `String`

The template to be used for rendering the cells in the "month" view, which are not in the min/max range.
Expand Down

0 comments on commit 112d9a7

Please sign in to comment.