Skip to content

Commit 919c67a

Browse files
authored
chore: remove adaptive parameter from docs (#3342)
1 parent 4cd185f commit 919c67a

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

components/pager/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ The Blazor Pager provides various parameters that allow you to configure the com
8080

8181
| Parameter | Type and Default Value | Description |
8282
| ----------- | ----------- | ----------- |
83-
|`Adaptive` | `bool` <br /> (`true`) | Defines whether pager elements change based on the screen size. When enabled, the Pager will hide its `Pager Info` and `PageSize Dropdownlist` if they cannot fit in the available space. In the smallest resolution, the page buttons will be rendered as a select element. This parameter will be deprecated in the next major version in favor of the new `Responsive` parameter. |
8483
| `AdaptiveMode` | `AdaptiveMode` enum <br /> (`None`) | Defines the adaptive mode of the Pager. When set to `Auto`, and the window width is below [`768px` or `RootComponentAdaptiveSettings.Medium`](slug:adaptive-rendering#rendering-specifics), components with popups will render them as an `ActionSheet`. In this case, the page sizes dropdown only. |
8584
| `ButtonCount` | `int` | The maximum number of page buttons that will be visible. To take effect, `ButtonCount` must be smaller than the page count (`ButtonCount < Total / PageSize`). |
8685
| `Class` | `string` | Renders a custom CSS class to the `<div class="k-pager-wrap">` element. |

components/toolbar/overview.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ The Blazor ToolBar provides parameters to configure the component:
8282

8383
| Parameter | Type | Description |
8484
| ----------- | ----------- | ----------- |
85-
| `Adaptive` <br /> (deprecated) | `bool` <br /> (`true`) | Toggles the overflow popup of the ToolBar. The component displays an additional anchor on its side, where it places all items which do not fit and overflow. [Template items](slug:toolbar-templated-item#notes) don't participate in this mechanism and they are always rendered in the ToolBar itself. This parameter is deprecated in favor of `OverflowMode`. |
8685
| `Class` | `string` | The CSS class to be rendered on the main wrapping element of the ToolBar component, which is `<div class="k-toolbar">`. Use for [styling customizations](slug:themes-override). |
87-
| `OverflowMode` | `ToolBarOverflowMode` <br /> (`Menu`) | The adaptive mode of the Toolbar. |
86+
| `OverflowMode` | `ToolBarOverflowMode` <br /> (`Menu`) | Toggles the overflow popup of the ToolBar. The component displays an additional anchor on its side, where it places all items which do not fit and overflow.|
8887
| `ScrollButtonsPosition` | `ToolBarScrollButtonsPosition` enum <br /> (`Split`) | Specifies the position of the buttons when the ToolBar scroll adaptive mode is enabled. |
8988
| `ScrollButtonsVisibility` | `ToolBarScrollButtonsVisibility` enum <br /> (`Visible`)| Specifies the visibility of the buttons when the ToolBar scroll adaptive mode is enabled. |
9089

@@ -112,8 +111,8 @@ The Blazor Toolbar has an option for adaptiveness. This option allows you to hid
112111
<br />
113112
<br />
114113
115-
<div class="toolbar-wrapper">
116-
<TelerikToolBar Adaptive="@ToolBarAdaptive">
114+
<div class="toolbar-wrapper">
115+
<TelerikToolBar OverflowMode="@ToolBarOverflowMode.Menu">
117116
<ToolBarButton Icon="@SvgIcon.Undo">Undo</ToolBarButton>
118117
<ToolBarButton Icon="@SvgIcon.Redo">Redo</ToolBarButton>
119118
<ToolBarButton Icon="@SvgIcon.Image" Overflow="ToolBarItemOverflow.Always">Image</ToolBarButton>
@@ -123,29 +122,28 @@ The Blazor Toolbar has an option for adaptiveness. This option allows you to hid
123122
<ToolBarButton Icon="@SvgIcon.Copy" Overflow="ToolBarItemOverflow.Never">Copy</ToolBarButton>
124123
<ToolBarButton Icon="@SvgIcon.Clipboard" Overflow="ToolBarItemOverflow.Never">Paste</ToolBarButton>
125124
<ToolBarSeparator></ToolBarSeparator>
126-
<ToolBarButtonGroup SelectionMode="@ButtonGroupSelectionMode.Single">
127-
<ToolBarToggleButton Icon="@SvgIcon.AlignLeft" OverflowText="Left"></ToolBarToggleButton>
128-
<ToolBarToggleButton Icon="@SvgIcon.AlignCenter" OverflowText="Center"></ToolBarToggleButton>
129-
<ToolBarToggleButton Icon="@SvgIcon.AlignRight" OverflowText="Right"></ToolBarToggleButton>
130-
</ToolBarButtonGroup>
125+
<ToolBarButtonGroup SelectionMode="@ButtonGroupSelectionMode.Single">
126+
<ToolBarToggleButton Icon="@SvgIcon.AlignLeft" OverflowText="Left"></ToolBarToggleButton>
127+
<ToolBarToggleButton Icon="@SvgIcon.AlignCenter" OverflowText="Center"></ToolBarToggleButton>
128+
<ToolBarToggleButton Icon="@SvgIcon.AlignRight" OverflowText="Right"></ToolBarToggleButton>
129+
</ToolBarButtonGroup>
131130
</TelerikToolBar>
132131
</div>
133132
133+
<style>
134+
.toolbar-wrapper {
135+
width: @(Width.ToString() + "%");
136+
}
137+
</style>
138+
134139
@code {
135-
void ChangeWidth()
140+
private double Width { get; set; } = 100;
141+
142+
private void ChangeWidth()
136143
{
137144
Width = 40;
138145
}
139-
140-
public double Width { get; set; } = 100;
141-
public bool ToolBarAdaptive { get; set; } = true;
142146
}
143-
144-
<style>
145-
.toolbar-wrapper{
146-
width: @(Width.ToString() + "%");
147-
}
148-
</style>
149147
````
150148

151149
## Next Steps

0 commit comments

Comments
 (0)