Skip to content

Commit 8109aff

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 3aabe8f commit 8109aff

File tree

17 files changed

+210
-48
lines changed

17 files changed

+210
-48
lines changed

docs-aspnet/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,10 @@ navigation:
662662
baseurl: /aspnet-core
663663

664664
## The Kendo UI version used
665-
cdnVersion: "2022.2.510"
665+
cdnVersion: "2022.2.621"
666666

667667
## The MVC Core version used
668-
mvcCoreVersion: "2022.2.510"
668+
mvcCoreVersion: "2022.2.621"
669669

670670
ff-sheet-id: 1mottKpkbJFxkUq6rS3CsPrT8JQOE2JlUtsJBR622cxs
671671

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,10 @@ navigation:
754754
baseurl: /kendo-ui
755755

756756
## The Kendo UI version used
757-
cdnVersion: "2022.2.510"
757+
cdnVersion: "2022.2.621"
758758

759759
## The MVC Core version used
760-
mvcCoreVersion: "2022.2.510"
760+
mvcCoreVersion: "2022.2.621"
761761

762762
## Progress NPM Registry
763763
registry_url: 'https://registry.npm.telerik.com/'

docs/api/javascript/dataviz/map/layer.md

Lines changed: 126 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,68 @@ Represents an individual map layer.
1414
### map `kendo.dataviz.ui.Map`
1515
The owner Map widget.
1616

17+
#### Example - add a layer to an existing map instance
18+
19+
<button class="k-button k-button-lg k-button-solid-primary" id="add">Add Layer</button>
20+
<div id="map"></div>
21+
<script>
22+
$("#add").on("click", function() {
23+
let map = $("#map").data("kendoMap"),
24+
layerOptions = {
25+
urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
26+
subdomains: ["a", "b", "c"],
27+
attribution: "&copy; <a href='https://osm.org/copyright'>OpenStreetMap contributors</a>"
28+
};
29+
30+
let layer = new kendo.dataviz.map.layers.TileLayer(map, layerOptions);
31+
map.layers.push(layer);
32+
layer.show();
33+
});
34+
35+
function createMap() {
36+
$("#map").kendoMap({
37+
center: [45, 45],
38+
minZoom: 3,
39+
zoom: 4,
40+
wraparound: false
41+
});
42+
}
43+
44+
$(document).ready(createMap);
45+
</script>
46+
1747
### options `Object`
18-
The layer options.
48+
The layer [`options`](/api/javascript/dataviz/ui/map/configuration/layers#related-properties).
49+
50+
#### Example - add a layer to an existing map instance
51+
52+
<button class="k-button k-button-lg k-button-solid-primary" id="add">Add Layer</button>
53+
<div id="map"></div>
54+
<script>
55+
$("#add").on("click", function() {
56+
let map = $("#map").data("kendoMap"),
57+
layerOptions = {
58+
urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
59+
subdomains: ["a", "b", "c"],
60+
attribution: "&copy; <a href='https://osm.org/copyright'>OpenStreetMap contributors</a>"
61+
};
62+
63+
let layer = new kendo.dataviz.map.layers.TileLayer(map, layerOptions);
64+
map.layers.push(layer);
65+
layer.show();
66+
});
67+
68+
function createMap() {
69+
$("#map").kendoMap({
70+
center: [45, 45],
71+
minZoom: 3,
72+
zoom: 4,
73+
wraparound: false
74+
});
75+
}
76+
77+
$(document).ready(createMap);
78+
</script>
1979

2080
## Fields
2181

@@ -27,5 +87,70 @@ The owner Map widget.
2787
### show
2888
Shows the layer, if not visible.
2989

90+
<button class="k-button k-button-lg k-button-solid-primary" id="show">Show Layer</button>
91+
<div id="map"></div>
92+
<script>
93+
$("#show").on("click", function() {
94+
let map = $("#map").data("kendoMap");
95+
let layer = map.layers[0];
96+
97+
// Show the first layer of the map
98+
layer.show();
99+
});
100+
101+
function createMap() {
102+
$("#map").kendoMap({
103+
center: [45, 45],
104+
minZoom: 3,
105+
zoom: 4,
106+
wraparound: false,
107+
layers: [
108+
{
109+
type: "tile",
110+
urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
111+
subdomains: ["a", "b", "c"],
112+
attribution: "&copy; <a href='https://osm.org/copyright'>OpenStreetMap contributors</a>"
113+
}
114+
]
115+
});
116+
117+
// Hide the first layer by default.
118+
$("#map").data("kendoMap").layers[0].hide();
119+
}
120+
121+
$(document).ready(createMap);
122+
</script>
123+
30124
### hide
31125
Hides the layer, if visible.
126+
127+
<button class="k-button k-button-lg k-button-solid-primary" id="hide">Hide Layer</button>
128+
<div id="map"></div>
129+
<script>
130+
$("#hide").on("click", function() {
131+
let map = $("#map").data("kendoMap");
132+
let layer = map.layers[0];
133+
134+
// Hide the first layer of the map
135+
layer.hide();
136+
});
137+
138+
function createMap() {
139+
$("#map").kendoMap({
140+
center: [45, 45],
141+
minZoom: 3,
142+
zoom: 4,
143+
wraparound: false,
144+
layers: [
145+
{
146+
type: "tile",
147+
urlTemplate: "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
148+
subdomains: ["a", "b", "c"],
149+
attribution: "&copy; <a href='https://osm.org/copyright'>OpenStreetMap contributors</a>"
150+
}
151+
]
152+
});
153+
}
154+
155+
$(document).ready(createMap);
156+
</script>

docs/api/javascript/ui/circularprogressbar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ A value indicating how wide will the pointer be
194194
<div id="progressbar"></div>
195195
<script>
196196
$("#progressbar").kendoCircularProgressBar({
197-
pointerWidth: 15.
197+
pointerWidth: 15,
198198
indeterminate: true
199199
});
200200
</script>

docs/api/javascript/ui/datepicker.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,16 @@ The duration of the open animation in milliseconds.
141141
#### Example - specify German culture internationalization
142142

143143
<!--
144-
TODO: Add the kendo.culture.de-DE.min.js file as it is required!
145-
146-
Here is a sample script tag:
147-
<script src="https://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"></script>
148-
149-
For more information check this help topic:
150-
https://docs.telerik.com/kendo-ui/framework/globalization/overview
144+
Include the culture file.
145+
List of available cultures - https://github.com/telerik/kendo-ui-core/tree/master/src/cultures
151146
-->
147+
<script src="https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/cultures/kendo.culture.de-DE.min.js"></script>
152148

153149
<input id="datepicker" />
154150
<script>
155151
$("#datepicker").kendoDatePicker({
156-
culture: "de-DE"
152+
culture: "de-DE",
153+
value: new Date()
157154
});
158155
</script>
159156

docs/api/javascript/ui/numerictextbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Represents the Kendo UI NumericTextBox widget. Inherits from [Widget](/api/javas
3737

3838
### decimals `Number`*(default: null)*
3939

40-
Specifies the number precision applied to the widget value and when the NumericTextBox is focused. If not set, the precision defined by the current culture is used. If the user enters a number with a greater precision than is currently configured, the widget value will be rounded. For example, if `decimals` is `2` and the user inputs `12.346`, the value will become `12.35`. If the user inputs `12.99`, the value will become `13.00`.
40+
Specifies the number precision applied to the widget value and when the NumericTextBox is focused. If not set, the precision defined by the current culture is used. If the user enters a number with a greater precision than is currently configured, the widget value will be rounded. For example, if `decimals` is `2` and the user inputs `12.346`, the value will become `12.35`. If `decimals` is `1` the user inputs `12.99`, the value will become `13.00`.
4141

4242
Compare with the [`format`](/api/javascript/ui/numerictextbox#configuration-format) property.
4343

docs/controls/navigation/dropdownbutton/accessibility/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The DropDownButton is compliant with the Section 508 requirements. For more info
2525

2626
## WCAG 2.1
2727

28-
The DropDownButton supports the standards for providing accessible web content which are set by the [Web Content Accessibility Guidelines 2.1](https://www.w3.org/TR/WCAG/). For more information, refer to the article on [WCAG 2.1 compliance in Kendo UI for jQuery]({% slug section508_wcag21_accessibility_support %})
28+
The DropDownButton supports the standards for providing accessible web content which are set by the [Web Content Accessibility Guidelines 2.1](https://www.w3.org/TR/WCAG/). For more information, refer to the article on [WCAG 2.1 compliance in Kendo UI for jQuery]({% slug section508_wcag21_accessibility_support %}).
2929

3030
## See Also
3131

docs/controls/navigation/dropdownbutton/appearance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following values are available for the [`size`](/api/javascript/ui/dropdownb
3434
- `lg`—Large size.
3535
- `none`—Unset.
3636

37-
The default size value is `medium` and it is applied to the button element through the `k-button-md` class.
37+
The default `size` value is `medium` and it is applied to the button element through the `k-button-md` class.
3838

3939
```html
4040
<button id="button" data-role="dropdownbutton" class="k-menu-button k-button k-button-md">
@@ -64,7 +64,7 @@ The default `fillMode` value is `solid` and it is applied to the button element
6464

6565
### ThemeColor
6666

67-
As applying `themeColor` is closely related to the `fillMode`, the structure of the class name for the `themeColor` is a composite `k-button-{fillMode}-{themeColor}` setting.
67+
As applying `themeColor` is closely related to the `fillMode` option, the structure of the class name for `themeColor` is a composite `k-button-{fillMode}-{themeColor}` setting.
6868

6969
The following values are available for the [`themeColor`](/api/javascript/ui/dropdownbutton/configuration/themecolor) option:
7070

@@ -81,7 +81,7 @@ The following values are available for the [`themeColor`](/api/javascript/ui/dro
8181
- `inverse`
8282
- `none`
8383

84-
The default `themeColor` value is `base`. A button with default `fillMode` and `themeColor` will have the `k-button-solid-base` class applied.
84+
The default `themeColor` value is `base`. A button with default `fillMode` and `themeColor` options will have the `k-button-solid-base` class applied.
8585

8686
```html
8787
<!-- DropDownButton with default fillMode and themeColor -->
@@ -113,7 +113,7 @@ The following values are available for the [`rounded`](/api/javascript/ui/dropdo
113113
- `pill`
114114
- `none`—Unset.
115115

116-
The default rounded value is `medium` and it is applied to the button element through the `k-rounded-md` class.
116+
The default `rounded` value is `medium` and it is applied to the button element through the `k-rounded-md` class.
117117

118118
```html
119119
<button id="button" data-role="dropdownbutton" class="k-menu-button k-button k-rounded-md ">

docs/controls/navigation/dropdownbutton/icons.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The DropDownButton provides options for visually enhancing its textual content b
1212

1313
You can add an icon with the `img` element or with a background image (usually a sprite). With regard to web standards, using background images is better because the icon represents a decoration, not structural content.
1414

15-
The DropDownButton provides the `icon`, `spriteCssClass` and `imageUrl` properties for configuring icons. With a specific SplitButton instance, you have to use only one of them&mdash;if you define multiple properties, the SplitButton will work with only one of them in the order previously stated.
15+
The DropDownButton provides the `icon`, `spriteCssClass`, and `imageUrl` properties for configuring icons. With a specific DropDownButton instance, you have to use only one of them&mdash;if you define multiple properties, the DropDownButton will work with only one of them in the order previously stated.
1616

1717
For a complete example on rendering an Icon DropDownButton, refer to the [Icons demo of the DropDownButton](https://demos.telerik.com/kendo-ui/dropdownbutton/icons).
1818

@@ -23,7 +23,10 @@ To visually enhance the DropDownButton, use any of the following approaches:
2323

2424
## Background Icons
2525

26-
Background icons are applied over the `icon` or `spriteCssClass` properties and are displayed as a background of a `span` element. The DropDownButton can automatically render the `span` element, or use an existing `span` element if it has a `k-sprite` CSS class or a `k-icon` class if the `icon` property is used. The difference between the `icon` or `spriteCssClass` properties is that `icon` is intended to be used for built-in Kendo UI icons which are part of the theme sprite. For a list of the available icon names, refer to the [demo on using icons](https://demos.telerik.com/kendo-ui/web/styling/icons.html).
26+
Background icons are applied through the `icon` or `spriteCssClass` properties and are displayed as a background of a `span` element. The DropDownButton can either:
27+
* Automatically render the `span` element.
28+
* Use an existing `span` element&mdash;Possible only if the element has a `k-sprite` CSS class or a `k-icon` CSS class (if you use the `icon` property).
29+
The difference between the `icon` and `spriteCssClass` properties is that `icon` is intended for use with the built-in Kendo UI icons which are part of the theme sprite. For a list of the available icon names, refer to the [demo on using icons](https://demos.telerik.com/kendo-ui/web/styling/icons.html).
2730

2831
The following example demonstrates how to use icons in the DropDownButton widget:
2932

@@ -51,11 +54,11 @@ The `icon` configuration in the previous example will produce the following HTML
5154
The following example demonstrates how to apply the `spriteCssClass`:
5255

5356
```
54-
<button type="button" id="splitButton">Plus</button>
57+
<button type="button" id="dropDownButton">Plus</button>
5558

5659
<script>
5760
$(function(){
58-
$("#splitButton").kendoSplitButton({
61+
$("#dropDownButton").kendoDropDownButton({
5962
spriteCssClass: "myPlusIcon"
6063
});
6164
});

docs/controls/navigation/dropdownbutton/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ position: 1
88

99
# DropDownButton Overview
1010

11-
The Kendo UI for jQuery DropDownButton widget combines a button with a dropdown element. It allows users to click on the primary button and open the drop-down popup to choose from a list of additional actions.
11+
The Kendo UI for jQuery DropDownButton widget combines a button with a drop-down element. It allows users to click the primary button and open the drop-down popup to choose from a list of additional actions.
1212

1313
* [Demo page for the DropDownButton](https://demos.telerik.com/kendo-ui/dropdownbutton/index)
1414

0 commit comments

Comments
 (0)