You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/button/icons.md
+3-29Lines changed: 3 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,43 +8,17 @@ published: True
8
8
position: 2
9
9
---
10
10
11
-
12
11
# Button Icons
13
12
14
-
You can put an image, sprite or a font icon in the button to illustrate its purpose for your end users. To apply them, use the following properties:
15
-
16
-
* for a font icon, use the `Icon` attribute to set the font icon class.
17
-
* for an image, use the `ImageUrl` attribute to provide the URL
18
-
* for a sprite, set the `SpriteClass` attribute to `k-icon MySpriteClass` where `MySpriteClass` defines the CSS rules for the sprite.
19
-
20
-
You can see how to use the built-in icons in the [Font Icons]({%slug general-information/font-icons%}) article.
21
-
22
-
For a custom font icon, define the font and glyph in your `Icon` CSS class.
23
-
24
-
The following example shows how to use an image from a URL, a sprite image, and the built-in font icons.
13
+
You can add a [Telerik Font or SVG icon]({%slug general-information/font-icons%}) to the Button to illustrate its purpose by using the `Icon` parameter.
>tip You can use relative paths to your images in the `wwwroot` folder. The example above uses absolute paths to make it easy for you to see the results without preparing images.
47
-
48
22
>tip If you don't add text to the button, the button will center the icon on all sides.
49
23
50
24
>note Images used as icons should generally be small enough to fit in a line of text - the button is an inline element and is not designed for large images. If you want to use big icon buttons, consider one of the following options:
Copy file name to clipboardExpand all lines: components/buttongroup/icons.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,7 @@ position: 15
11
11
12
12
# ButtonGroup Icons
13
13
14
-
You can put an image, sprite or a font icon in the buttons within a ButtonGroup to illustrate its purpose for your end users. To apply them, use the following properties:
15
-
16
-
* for a [Telerik font icon]({%slug general-information/font-icons%}), use the `Icon` attribute to set the font icon class.
17
-
18
-
* for a raster image, use the `ImageUrl` attribute to provide the URL to the icon (relative or absolute).
19
-
20
-
* for a custom font icon class, set the `IconClass` parameter of the component to the desired CSS class list which provides the required rules (like font name and glyph symbol). Make sure to also reference the desired font in your app and to use its own recommendations.
21
-
22
-
* for a sprite, set the `SpriteClass` attribute to `k-icon MySpriteClass` where `MySpriteClass` defines the CSS rules for the sprite.
23
-
24
-
25
-
The following example shows how to use an image from a URL, a sprite image, and the built-in font icons.
14
+
You can add a [Telerik Font or SVG icon]({%slug general-information/font-icons%}) to the ButtonGroup items to illustrate its purpose by using the `Icon` parameter.
26
15
27
16
>caption How to use icons in the Telerik ButtonGroup Button
28
17
@@ -31,43 +20,14 @@ The following example shows how to use an image from a URL, a sprite image, and
31
20
It also shows how to use telerik icons, raster icons and sprite images*@

68
-
69
-
>tip You can use relative paths to your images in the `wwwroot` folder. The example above uses absolute paths to make it easy for you to see the results without preparing images.
70
-
71
31
>tip If you don't add text to the button, the button will center the icon on all sides.
72
32
73
33
>note Images used as icons should generally be small enough to fit in a line of text - the button is an inline element and is not designed for large images. If you want to use big icon buttons, consider one of the following options:
Copy file name to clipboardExpand all lines: components/contextmenu/data-binding/overview.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The menu items provide the following features that you control through the corre
38
38
39
39
*`Text` - the text that will be shown on the item.
40
40
41
-
*`Icon` - The [Telerik Font or SVG icon]({%slug general-information/font-icons%}) that will be rendered in the item. Read more in the [Icons article]({%slug breadcrumb-icons%}).
41
+
*`Icon` - The [Telerik Font or SVG icon]({%slug general-information/font-icons%}) that will be rendered in the item. Read more in the [Icons article]({%slug contextmenu-icons%}).
42
42
43
43
*`Url` - the view the item will navigate to by generating a link.
44
44
@@ -53,9 +53,7 @@ The properties of a menu item match directly to a field of the model the menu is
0 commit comments