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: knowledge-base/common-extend-inherit-wrap-reuse-telerik-blazor-components.md
+68-11Lines changed: 68 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ On the other hand, neither option allows changing the internal HTML rendering of
49
49
50
50
### Wrap Telerik Components
51
51
52
-
This approach allows you to add additional markup or other components next to the Telerik component.
52
+
This approach allows you to add additional markup or other components next to the Telerik component. You can also define custom events for the component, which wraps the Telerik component.
53
53
54
54
1. Add the Telerik component to a separate `.razor` file, for example, `MyReusableComponent.razor`.
55
55
1. Implement the desired `MyReusableComponent` parameters and set the required parameters of the Telerik component.
@@ -89,28 +89,53 @@ Adjust the `YourAppName.BaseComponents` namespace in `Home.razor` and `Inherited
89
89
Class="my-combobox"
90
90
Filterable="true"
91
91
FilterOperator="@StringFilterOperator.Contains"
92
-
Width="200px" />
93
-
94
-
<p style="margin-top:2em"><strong>Inherited ComboBox</strong> with additional API and default property values</p>
92
+
Width="240px">
93
+
<ComboBoxPrefixTemplate>
94
+
<TelerikSvgIcon Icon="@SvgIcon.Sparkles" />
95
+
</ComboBoxPrefixTemplate>
96
+
<ComboBoxSuffixTemplate>
97
+
<TelerikButton Icon="@SvgIcon.QuestionCircle"
98
+
Title="Click Me"
99
+
OnClick="@OnComboBoxSuffixClick" />
100
+
</ComboBoxSuffixTemplate>
101
+
</TelerikComboBox>
102
+
103
+
<p style="margin-top:2em"><strong>Inherited ComboBox</strong> with additional parameters and default property values</p>
0 commit comments