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
>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.
Copy file name to clipboardExpand all lines: components/button/overview.md
+39-94Lines changed: 39 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,36 @@ position: 0
12
12
13
13
This article provides information about the Button component and its core features.
14
14
15
-
The Button component provides styling according to the [chosen theme]({%slug general-information/themes%}), click eventand icons. You can also disable the button through a property.
15
+
The Button component provides styling according to the [chosen theme]({%slug general-information/themes%}), click [event]({%slug button-events%}) and [icons]({%slug button-icons%}). You can also disable the button and set its [type]({%slug button-type%}).
16
16
17
17
In this article:
18
18
19
19
*[Basic Button](#basic-button)
20
-
*[Click Handler](#click-handler)
21
-
*[Styling](#styling)
22
-
*[Icons](#icons)
20
+
*[Primary Button](#primary-button)
23
21
*[Disabled State](#disabled-state)
24
-
*[Button Type](#button-type)
22
+
*[Styling](#styling)
23
+
25
24
26
25
27
26
## Basic Button
28
27
29
28
To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:
30
29
31
-
>caption Basic Telerik Button tag
30
+
>caption Basic Telerik Button with OnClick event handling
>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.
142
77
143
78
## Disabled State
144
79
@@ -154,24 +89,34 @@ To disable a button, set its `Enabled` attribute to `false`.
154
89
155
90

156
91
157
-
## Button Type
158
-
159
-
The button renders a `<button type="submit">` element by default, as this is the default behavior of a button.
92
+
## Styling
160
93
161
-
You can control the `type` attribute through the `ButtonType` property of the component which can accept the following values:
94
+
You can style the button through its `Class` attribute to define your own CSS rules that apply to the HTML rendering.
162
95
163
-
*`Submit` - Renders a `type="submit"` attribute. Can submit the form and trigger validation. The default value.
164
-
*`Button` - Renders a `type="button"` attribute. Does not invoke form validation and submission.
165
-
*`Reset` - Renders a `type="reset"` attribute. Can reset the current form.
96
+
>caption Set CSS class to the button and change its appearance
0 commit comments