Skip to content

Commit 35a4b37

Browse files
committed
docs(common): replace ClearButton parameter
1 parent b0ad6f3 commit 35a4b37

20 files changed

+41
-41
lines changed

common-features/input-adornments.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To add a prefix, declare a `<*ComponentName*PrefixTemplate>` tag as a direct chi
9999
<TelerikAutoComplete Data="@Products"
100100
@bind-Value="@SelectedProduct"
101101
Placeholder="Search a product..."
102-
ClearButton="true"
102+
ShowClearButton="true"
103103
Width="300px">
104104
<AutoCompletePrefixTemplate>
105105
<TelerikSvgIcon Icon="@SvgIcon.Search" />
@@ -113,7 +113,7 @@ To add a prefix, declare a `<*ComponentName*PrefixTemplate>` tag as a direct chi
113113
<TelerikComboBox Data="@Products"
114114
@bind-Value="@SelectedProduct"
115115
Placeholder="Search a product..."
116-
ClearButton="true"
116+
ShowClearButton="true"
117117
Width="300px">
118118
<ComboBoxPrefixTemplate>
119119
<TelerikSvgIcon Icon="@SvgIcon.Search" />
@@ -146,7 +146,7 @@ To add a prefix, declare a `<*ComponentName*PrefixTemplate>` tag as a direct chi
146146
<TelerikMultiSelect Data="@Products"
147147
@bind-Value="@SelectedProducts"
148148
Placeholder="Search products..."
149-
ClearButton="true"
149+
ShowClearButton="true"
150150
Width="300px">
151151
<MultiSelectPrefixTemplate>
152152
<TelerikSvgIcon Icon="@SvgIcon.Search" />
@@ -243,7 +243,7 @@ To add a suffix, declare a `<*ComponentName*SuffixTemplate>` tag as a direct chi
243243
<TelerikAutoComplete Data="@Products"
244244
@bind-Value="@SelectedProduct"
245245
Placeholder="Search a product..."
246-
ClearButton="true"
246+
ShowClearButton="true"
247247
Width="300px">
248248
<AutoCompleteSuffixTemplate>
249249
<TelerikSvgIcon Icon="@SvgIcon.Copy" />
@@ -257,7 +257,7 @@ To add a suffix, declare a `<*ComponentName*SuffixTemplate>` tag as a direct chi
257257
<TelerikComboBox Data="@Products"
258258
@bind-Value="@SelectedProduct"
259259
Placeholder="Search a product..."
260-
ClearButton="true"
260+
ShowClearButton="true"
261261
Width="300px">
262262
<ComboBoxSuffixTemplate>
263263
<TelerikSvgIcon Icon="@SvgIcon.Copy" />
@@ -290,7 +290,7 @@ To add a suffix, declare a `<*ComponentName*SuffixTemplate>` tag as a direct chi
290290
<TelerikMultiSelect Data="@Products"
291291
@bind-Value="@SelectedProducts"
292292
Placeholder="Search products..."
293-
ClearButton="true"
293+
ShowClearButton="true"
294294
Width="300px">
295295
<MultiSelectSuffixTemplate>
296296
<TelerikSvgIcon Icon="@SvgIcon.Copy" />
@@ -372,7 +372,7 @@ To prevent that behavior, you may wrap the content of the prefix/suffix template
372372
<TelerikAutoComplete Data="@Roles"
373373
@bind-Value="@SelectedRole"
374374
Placeholder="Enter your role (can be free text)"
375-
ClearButton="true">
375+
ShowClearButton="true">
376376
<AutoCompletePrefixTemplate>
377377
<div class="test" onkeydown="event.stopPropagation()">
378378
<TelerikDropDownList Data="@Teams"

common-features/input-validation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Simple textbox-like inputs do not have any special behavior. You need to bind th
6565
<p class="role">
6666
<label for="roleAutoComplete">Role:</label>
6767
<TelerikAutoComplete Data="@RoleSuggestions" @bind-Value="@person.Role" Id="roleAutoComplete"
68-
Placeholder="Enter your role (can be free text)" ClearButton="true" />
68+
Placeholder="Enter your role (can be free text)" ShowClearButton="true" />
6969
<ValidationMessage For="@(() => person.Role)"></ValidationMessage>
7070
</p>
7171
<p class="height">
@@ -243,7 +243,7 @@ The ComboBox works with the `Value` of the selected item (through its `ValueFiel
243243
<ValidationSummary />
244244
<p class="team">
245245
<label for="teamCombobox">Team:</label>
246-
<TelerikComboBox @bind-Value="person.Team" Placeholder="Select team" ClearButton="true" Id="teamCombobox"
246+
<TelerikComboBox @bind-Value="person.Team" Placeholder="Select team" ShowClearButton="true" Id="teamCombobox"
247247
Data="@teams" TextField="MyTextField" ValueField="MyValueField">
248248
</TelerikComboBox>
249249
<ValidationMessage For="@(() => person.Team)"></ValidationMessage>
@@ -301,7 +301,7 @@ The ComboBox works with the `Value` of the selected item (through its `ValueFiel
301301
<ValidationSummary />
302302
<p class="team">
303303
<label for="teamComboBox">Team:</label>
304-
<TelerikComboBox Data="@ExistingTeams" @bind-Value="person.Team" AllowCustom="true" ClearButton="true" Id="teamComboBox"></TelerikComboBox>
304+
<TelerikComboBox Data="@ExistingTeams" @bind-Value="person.Team" AllowCustom="true" ShowClearButton="true" Id="teamComboBox"></TelerikComboBox>
305305
<ValidationMessage For="@(() => person.Team)"></ValidationMessage>
306306
</p>
307307

components/autocomplete/filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ By default, the filtering is debounced with 150ms. Configure that with the [`Deb
6767
MinLength="@FilterMinLength"
6868
DebounceDelay="@AutoCompleteDebounceDelay"
6969
Placeholder="Type 's' or 'a' to see the difference"
70-
ClearButton="true"
70+
ShowClearButton="true"
7171
Width="300px" />
7272
7373
@code{

components/autocomplete/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ User input: @AutoCompleteValue
2929
<TelerikAutoComplete Data="@Suggestions"
3030
@bind-Value="@AutoCompleteValue"
3131
Placeholder="Enter your role (can be free text)"
32-
ClearButton="true" />
32+
ShowClearButton="true" />
3333
3434
@code{
3535
//Current value is null (no item is selected) which allows the Placeholder to be displayed.
@@ -94,7 +94,7 @@ The Blazor AutoComplete provides various parameters that allow you to configure
9494
| `Value` and `bind-Value` | `string` | Get/set the value of the component, can be used for binding. Use the `@bind-Value` syntax for two-way binding, for example, to a variable of your own. The `Value` must be a `string`.|
9595
| `ValueField` | `string` <br /> (`Value`) | The name of the field from the model that will be shown as hints to the user. Not required when binding to a simple list of strings. |
9696
| `TabIndex` | `int?` | Maps to the `tabindex` attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the `Tab` key. |
97-
| `ClearButton` | `bool` | Whether the user will have the option to clear the selected value with a button on the input. When it is clicked, the `Value` will be updated to `string.Empty`. |
97+
| `ShowClearButton` | `bool` | Whether the user will have the option to clear the selected value with a button on the input. When it is clicked, the `Value` will be updated to `string.Empty`. |
9898
| `Enabled` | `bool` | Use this Boolean property to render a disabled Blazor AutoComplete component until certain requirements are met. |
9999
| `ReadOnly` | `bool` | If set to `true`, the component will be readonly and will not allow user input. The component is not readonly by default and allows user input. |
100100
| `MinLength` | `int` | How many characters the text has to be before the suggestions list appears. Cannot be `0`. Often works together with [filtering]({%slug autocomplete-filter%}). |

components/combobox/appearance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can increase or decrease the size of the ComboBox by setting the `Size` attr
4747
ValueField="MyValueField"
4848
@bind-Value="selectedValue"
4949
Placeholder="Select an item..."
50-
ClearButton="true"
50+
ShowClearButton="true"
5151
Filterable="true">
5252
</TelerikComboBox>
5353
</div>
@@ -105,7 +105,7 @@ The `Rounded` attribute applies the `border-radius` CSS rule to the ComboBox to
105105
ValueField="MyValueField"
106106
@bind-Value="selectedValue"
107107
Placeholder="Select an item..."
108-
ClearButton="true"
108+
ShowClearButton="true"
109109
Filterable="true">
110110
</TelerikComboBox>
111111
</div>
@@ -162,7 +162,7 @@ The `FillMode` controls how the TelerikComboBox is filled. You can set it to a m
162162
ValueField="MyValueField"
163163
@bind-Value="selectedValue"
164164
Placeholder="Select an item..."
165-
ClearButton="true"
165+
ShowClearButton="true"
166166
Filterable="true">
167167
</TelerikComboBox>
168168
</div>

components/combobox/filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ By default, the filtering is debounced with 150ms. Configure that with the [`Deb
6060
FilterOperator="@FilterOperator"
6161
DebounceDelay="@DebounceDelay"
6262
Placeholder="Type digits to see filtering in action"
63-
ClearButton="true"
63+
ShowClearButton="true"
6464
Width="300px">
6565
</TelerikComboBox>
6666

components/combobox/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Selected value: @selectedValue
2727
<br />
2828
2929
<TelerikComboBox Data="@myComboData" TextField="MyTextField" ValueField="MyValueField" @bind-Value="selectedValue"
30-
Placeholder="Select an item..." ClearButton="true" Filterable="true">
30+
Placeholder="Select an item..." ShowClearButton="true" Filterable="true">
3131
</TelerikComboBox>
3232
3333
@code {
@@ -85,7 +85,7 @@ The Blazor ComboBox @[template](/_contentTemplates/dropdowns/features.md#groupin
8585
| ----------- | ----------- | -----------|
8686
| `AdaptiveMode` | `AdaptiveMode` <br /> (`None`) | The [adaptive mode]({%slug adaptive-rendering%}) of the component. |
8787
| `AllowCustom` | `bool` | whether the user can enter [custom values]({%slug components/combobox/custom-value%}). If enabled, the `ValueField` must be a `string`. |
88-
| `ClearButton` | `bool` | whether the user will have the option to clear the selected value. When it is clicked, the `Value` will be updated to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, clearing the value will lead to a `0` `Value`, so if there is an Item with `0` in its `ValueField` - issues may arise with its selection. This feature can often go together with `AllowCustom`. |
88+
| `ShowClearButton` | `bool` | whether the user will have the option to clear the selected value. When it is clicked, the `Value` will be updated to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, clearing the value will lead to a `0` `Value`, so if there is an Item with `0` in its `ValueField` - issues may arise with its selection. This feature can often go together with `AllowCustom`. |
8989
| `Data` | `IEnumerable<TItem>` | allows you to provide the data source. Required. |
9090
| `DebounceDelay` | `int` <br/> 150 | Time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries. |
9191
| `Enabled` | `bool` | whether the component is enabled. |

components/combobox/pre-select-item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Selected value: @selectedValue
2222
<br />
2323
2424
<TelerikComboBox Data="@myComboData" TextField="MyTextField" ValueField="MyValueField" @bind-Value="selectedValue"
25-
Placeholder="Select an item..." ClearButton="true" Filterable="true">
25+
Placeholder="Select an item..." ShowClearButton="true" Filterable="true">
2626
</TelerikComboBox>
2727
2828
@code {

components/multicolumncombobox/appearance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can increase or decrease the size of the MultiColumnComboBox by setting the
4747
ValueField="MyValueField"
4848
@bind-Value="selectedValue"
4949
Placeholder="Select an item..."
50-
ClearButton="true"
50+
ShowClearButton="true"
5151
Filterable="true">
5252
<MultiColumnComboBoxColumns>
5353
<MultiColumnComboBoxColumn Field="@nameof(MyDdlModel.MyTextField)"></MultiColumnComboBoxColumn>
@@ -109,7 +109,7 @@ The `Rounded` attribute applies the `border-radius` CSS rule to the MultiColumnC
109109
ValueField="MyValueField"
110110
@bind-Value="selectedValue"
111111
Placeholder="Select an item..."
112-
ClearButton="true"
112+
ShowClearButton="true"
113113
Filterable="true">
114114
<MultiColumnComboBoxColumns>
115115
<MultiColumnComboBoxColumn Field="@nameof(MyDdlModel.MyTextField)"></MultiColumnComboBoxColumn>
@@ -170,7 +170,7 @@ The `FillMode` controls how the TelerikMultiColumnComboBox is filled. You can se
170170
ValueField="MyValueField"
171171
@bind-Value="selectedValue"
172172
Placeholder="Select an item..."
173-
ClearButton="true"
173+
ShowClearButton="true"
174174
Filterable="true">
175175
<MultiColumnComboBoxColumns>
176176
<MultiColumnComboBoxColumn Field="@nameof(MyDdlModel.MyTextField)"></MultiColumnComboBoxColumn>

components/multicolumncombobox/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The MultiColumnComboBox @[template](/_contentTemplates/dropdowns/features.md#gro
111111
| ----------- | ----------- | -----------|
112112
| `AdaptiveMode` | `AdaptiveMode` <br /> (`None`) | The [adaptive mode]({%slug adaptive-rendering%}) of the component. |
113113
| `AllowCustom` | `bool` | Determines if the user can enter [custom values]({%slug multicolumncombobox-custom-value%}). If enabled, the `ValueField` must be a `string`. |
114-
| `ClearButton` | `bool` | Displays a clear button inside the input. When it is clicked, the `Value` will change to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, there should be no data item with `0` in its `ValueField`, otherwise selection issues may occur. |
114+
| `ShowClearButton` | `bool` | Displays a clear button inside the input. When it is clicked, the `Value` will change to `default(TValue)`, so there must be no item in the `Data` that has such a `Value`. For example, if `TValue` is `int`, there should be no data item with `0` in its `ValueField`, otherwise selection issues may occur. |
115115
| `Data` | `IEnumerable<TItem>` | The component data. |
116116
| `DebounceDelay` | `int` <br/> (`150`) | The time in milliseconds between the last typed symbol and the internal `oninput` event firing. Applies when the user types and filters. Use it to balance between client-side performance and number of database queries. |
117117
| `Enabled` | `bool` | Whether the user can interact with the component. |

0 commit comments

Comments
 (0)