Skip to content

Commit c5c2557

Browse files
committed
Sync with Kendo UI Professional
1 parent 021da8b commit c5c2557

File tree

6 files changed

+61
-41
lines changed

6 files changed

+61
-41
lines changed

docs/api/javascript/ui/maskedtextbox.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ Specifies the culture info used by the widget.
3232

3333
#### Example - specify German culture internationalization
3434

35-
<!--
36-
TODO: Add the kendo.culture.de-DE.min.js file as it is required!
37-
38-
Here is a sample script tag:
39-
<script src="https://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"></script>
40-
41-
For more information check this help topic:
42-
https://docs.telerik.com/kendo-ui/framework/globalization/overview
43-
-->
44-
35+
36+
<script src="https://kendo.cdn.telerik.com/2024.3.1015/js/cultures/kendo.culture.de-DE.min.js"></script>
4537
<input id="maskedtextbox" />
4638
<script>
4739
$("#maskedtextbox").kendoMaskedTextBox({
@@ -442,7 +434,7 @@ Specifies the value of the MaskedTextBox widget.
442434

443435
An object, which holds the options of the widget.
444436

445-
#### Example - get options of the widget
437+
#### Example - get options of the component
446438

447439
<input id="maskedtextbox" />
448440
<script>
@@ -451,7 +443,8 @@ An object, which holds the options of the widget.
451443
var maskedtextbox = $("#maskedtextbox").data("kendoMaskedTextBox");
452444

453445
var options = maskedtextbox.options;
454-
<script>
446+
console.log(options)
447+
</script>
455448

456449
## Methods
457450

docs/api/javascript/ui/popover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Defines a kendo template that will be used as the card body inside the popover c
319319
<script>
320320
$(document).ready(function() {
321321
$("#target").kendoPopover({
322-
header: "Header content"
322+
header: "Header content",
323323
body: "Content description"
324324
});
325325
});
@@ -377,7 +377,7 @@ Defines a kendo template that will be used as the card header inside the popover
377377
<script>
378378
$(document).ready(function() {
379379
$("#target").kendoPopover({
380-
header: "Header content"
380+
header: "Header content",
381381
body: "Content description"
382382
});
383383
</script>

docs/api/javascript/ui/scheduler.md

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,24 @@ If the `dataSource` option is an existing [kendo.data.SchedulerDataSource](/api/
261261
url: "https://demos.telerik.com/kendo-ui/service/tasks",
262262
dataType: "jsonp"
263263
}
264-
}
264+
},
265+
schema: {
266+
model: {
267+
id: "ID",
268+
fields: {
269+
ID: { type: "number" },
270+
title: { field: "Title", defaultValue: "No title", validation: { required: true } },
271+
start: { type: "date", field: "Start" },
272+
end: { type: "date", field: "End" },
273+
description: { field: "Description" },
274+
recurrenceId: { from: "RecurrenceID" },
275+
recurrenceRule: { from: "RecurrenceRule" },
276+
recurrenceException: { from: "RecurrenceException" },
277+
ownerId: { field: "OwnerID", defaultValue: 1 },
278+
isAllDay: { type: "boolean", field: "IsAllDay" }
279+
}
280+
}
281+
}
265282
});
266283
$("#scheduler").kendoScheduler({
267284
date: new Date("2022/6/6"),
@@ -4314,7 +4331,7 @@ The field of the resource data item which represents the resource value. The res
43144331
resources: [
43154332
{
43164333
field: "roomId",
4317-
dataValueField: "roomId"
4334+
dataValueField: "roomId",
43184335
dataSource: [
43194336
{ text: "Small meeting room", roomId: 1 },
43204337
{ text: "Big meeting room", roomId: 2 }
@@ -6089,11 +6106,11 @@ The name of the view. Typically, used to get the name of the currently selected
60896106
}
60906107
]
60916108
});
6092-
6093-
var scheduler = $("#scheduler").data("kendoScheduler");
6094-
var viewName = scheduler.view().name;
6095-
6096-
alert(viewName)
6109+
setTimeout(function(){
6110+
var scheduler = $("#scheduler").data("kendoScheduler");
6111+
var viewName = scheduler.view();
6112+
alert(scheduler.view().name)
6113+
})
60976114
</script>
60986115

60996116
### views.selected `Boolean` *(default: false)*
@@ -6818,7 +6835,9 @@ Gets currently expanded scheduler events.
68186835
scheduler.saveEvent();
68196836
//get second occurrence
68206837
/* The result can be observed in the DevTools(F12) console of the browser. */
6821-
console.log(scheduler.data()[1]);
6838+
setTimeout(function(){
6839+
console.log(scheduler.data()[1]);
6840+
})
68226841
</script>
68236842

68246843
### date
@@ -6902,9 +6921,11 @@ The event which should be put in edit mode. Also accepts a string which is the `
69026921
}
69036922
]
69046923
});
6905-
var scheduler = $("#scheduler").data("kendoScheduler");
6906-
var event = scheduler.dataSource.at(0);
6907-
scheduler.editEvent(event);
6924+
setTimeout(function(){
6925+
var scheduler = $("#scheduler").data("kendoScheduler");
6926+
var event = scheduler.dataSource.at(0);
6927+
scheduler.editEvent(event);
6928+
})
69086929
</script>
69096930

69106931
### items
@@ -7052,9 +7073,11 @@ The event which should be removed. Also accepts a string which is the `uid` of t
70527073
}
70537074
]
70547075
});
7055-
var scheduler = $("#scheduler").data("kendoScheduler");
7056-
var event = scheduler.dataSource.at(0);
7057-
scheduler.removeEvent(event);
7076+
setTimeout(function(){
7077+
var scheduler = $("#scheduler").data("kendoScheduler");
7078+
var event = scheduler.dataSource.at(0);
7079+
scheduler.removeEvent(event);
7080+
})
70587081
</script>
70597082

70607083
### resourcesBySlot
@@ -7139,7 +7162,7 @@ Initiates the PDF export and returns a promise. Also triggers the [pdfExport](/a
71397162

71407163
Saves the scheduler event which is open in the edit form and closes it.
71417164

7142-
#### Example - save an new event
7165+
#### Example - save a new event
71437166
<div id="scheduler"></div>
71447167
<script>
71457168
$("#scheduler").kendoScheduler({
@@ -7284,20 +7307,22 @@ Get the time slot from given element.
72847307

72857308
`Object` The time slot.
72867309

7287-
#### Example - save an new event
7310+
#### Example - save a new event
72887311
<div id="scheduler"></div>
72897312
<script>
72907313
$("#scheduler").kendoScheduler({
72917314
date: new Date("2013/6/6")
72927315
});
7293-
var scheduler = $("#scheduler").data("kendoScheduler");
7294-
var element = scheduler.view().content.find("tr:first td:first");
7295-
var slot = scheduler.slotByElement(element);
7316+
setTimeout(function(){
7317+
var scheduler = $("#scheduler").data("kendoScheduler");
7318+
var element = scheduler.view().content.find("tr:first td:first");
7319+
var slot = scheduler.slotByElement(element);
72967320

7297-
/* The result can be observed in the DevTools(F12) console of the browser. */
7298-
console.log("slot startDate: " + slot.startDate);
7299-
/* The result can be observed in the DevTools(F12) console of the browser. */
7300-
console.log("slot endDate: " + slot.endDate);
7321+
/* The result can be observed in the DevTools(F12) console of the browser. */
7322+
console.log("slot startDate: " + slot.startDate);
7323+
/* The result can be observed in the DevTools(F12) console of the browser. */
7324+
console.log("slot endDate: " + slot.endDate);
7325+
})
73017326
</script>
73027327

73037328
### view
@@ -7365,7 +7390,9 @@ The name of the current view. Can be used for refreshing the current view data.
73657390
endTime: new Date("2015/1/1 18:00")
73667391
});
73677392

7368-
scheduler.view(scheduler.viewName());
7393+
setTimeout(function(){
7394+
scheduler.view(scheduler.viewName());
7395+
})
73697396
</script>
73707397

73717398

docs/api/javascript/ui/scrollview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Defines the aria-label for the previous button.
504504
navigatable: true,
505505
messages: {
506506
previousButtonLabel: "Prev button"
507-
}
507+
},
508508
contentHeight: "100%"
509509
});
510510
</script>

docs/api/javascript/ui/signature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ If set to `true`, the widget will be enabled. If set to `false`, the widget will
282282

283283
<div id="signature"></div>
284284
<script>
285-
$("#signature").kendoSignature({}
285+
$("#signature").kendoSignature({
286286
enable: false
287287
});
288288
var signature = $("#signature").data("kendoSignature");

docs/api/javascript/ui/splitbutton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The `img` element can be added automatically by the widget, or an existing eleme
117117
{ text: "item 1" },
118118
{ text: "item 2" }
119119
],
120-
imageUrl: "/images/edit-icon.gif"
120+
imageUrl: 'https://demos.telerik.com/kendo-ui/content/shared/icons/16/star.png'
121121
});
122122
</script>
123123

0 commit comments

Comments
 (0)