Skip to content

Commit 9f5d120

Browse files
Tsvetomir-HrikoevskaNansiYancheva
authored
Add tab alignment documentation (#2485)
* docs(TabStrip): add tab alignment documentation * chore: apply suggestion Co-authored-by: Iva Stefanova Koevska-Atanasova <koevska@progress.com> * chore: apply suggestion Co-authored-by: Iva Stefanova Koevska-Atanasova <koevska@progress.com> * chore: fix typo Co-authored-by: NansiYancheva <106161782+NansiYancheva@users.noreply.github.com> --------- Co-authored-by: Iva Stefanova Koevska-Atanasova <koevska@progress.com> Co-authored-by: NansiYancheva <106161782+NansiYancheva@users.noreply.github.com>
1 parent 15d3185 commit 9f5d120

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

components/tabstrip/overview.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ The Tabs are the building blocks of the TabStrip. The component allows individua
4848

4949
The Blazor TabStrip component allows you to control the position of the tabs. [Read more about the Tabs Position...]({%slug tabstrip-tabs-position%})
5050

51+
## Alignment of the Tabs
52+
53+
The Blazor TabStrip component allows you to control the alignment of the tabs. [Read more about the Tabs Alignment...]({%slug tabstrip-tabs-alignment%})
54+
5155
## Persist Content
5256

5357
The Blazor TabStrip component can persist the content of the tabs. When the user navigates between the tabs, their content will be hidden with CSS only to avoid re-initialization. [Read more about the Persist Content...]({%slug tabstrip-persist-content%})
@@ -72,6 +76,8 @@ The TabStrip provides the following features to allow further customization of i
7276
|`PersistTabContent` | `bool` | Whether to remove the content of inactive tabs from the DOM (if `false`), or just hide it with CSS (if `true`). See [Persist Content]({%slug tabstrip-persist-content%})
7377
| `Scrollable` | `bool` | Whether the tabs will be scrollable. See [Scrollable Tabs]({%slug tabstrip-scroll-tabs%})
7478
| `TabPosition` | `TabPosition` enum <br/> (`TabPosition.Top`)| Controls the position of the tabs.
79+
| `TabAlignment` | `TabStripTabAlignment` enum <br/> (`TabStripTabAlignment.Start`)| Controls the alignment of the tabs.
80+
7581

7682
### Styling and Appearance
7783

@@ -131,12 +137,12 @@ The `TabStrip` methods are accessible through its reference.
131137
## Next Steps
132138

133139
* [Configure the Tabs]({%slug tabstrip-tabs-configuration%})
134-
* [Explore the supported Tab positions]({%slug tabstrip-tabs-position%})
140+
* Explore the supported Tab [positions]({%slug tabstrip-tabs-position%}) and [alignments]({%slug tabstrip-tabs-alignment%})
135141
* [Handle the TabStrip events]({%slug tabstrip-events%})
136142

137143
## See Also
138144

139145
* [Live Demo: TabStrip](https://demos.telerik.com/blazor-ui/tabstrip/index)
140-
* [Live Demo: Tab Positions](https://demos.telerik.com/blazor-ui/tabstrip/tab-positions)
146+
* [Live Demo: Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)
141147
* [Events]({%slug tabstrip-events%})
142148
* [TabStrip API Reference](/blazor-ui/api/Telerik.Blazor.Components.TelerikTabStrip)

components/tabstrip/tabs-alignment.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Tabs Alignment
3+
page_title: TabStrip Tabs Alignment
4+
description: The TabAlignment parameter in the TabStrip component allows you to control the alignment of the tabs. By default, tabs align to the left of the TabStrip header.
5+
slug: tabstrip-tabs-alignment
6+
tags: telerik,blazor,tab,strip,tabstrip,alignment
7+
published: True
8+
position: 11
9+
---
10+
11+
# TabStrip Tabs Alignment
12+
13+
By design, the tabs are displayed on the left side of the TabStrip header.
14+
15+
You can customize their alignment through the `TabAlignment` parameter. It takes a member of the `Telerik.Blazor.TabStripTabAlignment` enumeration:
16+
17+
* `Start` (default)
18+
* `End`
19+
* `Center`
20+
* `Justify`
21+
* `Stretched`
22+
23+
>caption Set the desired tab alignment.
24+
25+
````CSHTML
26+
<TelerikTabStrip TabAlignment="@TabStripTabAlignment.End">
27+
<TabStripTab Title="First">
28+
First tab content.
29+
</TabStripTab>
30+
<TabStripTab Title="Second">
31+
Second tab content.
32+
</TabStripTab>
33+
<TabStripTab Title="Third">
34+
Third tab content.
35+
</TabStripTab>
36+
</TelerikTabStrip>
37+
````
38+
39+
## See Also
40+
41+
* [Live Demo: TabStrip - Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)

components/tabstrip/tabs-position.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Tabs Position
33
page_title: TabStrip Tabs Position
4-
description: Overview of the TabStrip for Blazor.
4+
description: The TabPosition parameter in the TabStrip component allows you to control the positioning of the tabs. By default, tabs are positioned at the top of the TabStrip.
55
slug: tabstrip-tabs-position
66
tags: telerik,blazor,tab,strip,tabstrip,position
77
published: True
@@ -37,4 +37,4 @@ You can customize their position through the optional `TabPosition` attribute of
3737

3838
## See Also
3939

40-
* [Live Demo: TabStrip - Tab Positions](https://demos.telerik.com/blazor-ui/tabstrip/tab-positions)
40+
* [Live Demo: TabStrip - Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)

0 commit comments

Comments
 (0)