-
Notifications
You must be signed in to change notification settings - Fork 81
Added new kb article wizard-text-wrapping #2586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xristianstefanov
merged 2 commits into
master
from
new-kb-wizard-text-wrapping-b68b73e1723142b894e7b43612a73193
Nov 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| --- | ||
| title: Wizard Text Wrapping | ||
| description: This article demonstrates how to allow text wrapping for step labels in the Telerik UI for Blazor Wizard component to ensure full text visibility. | ||
| type: how-to | ||
| page_title: How to Enable Text Wrapping in Wizard Step Labels - Telerik UI for Blazor | ||
| slug: wizard-text-wrapping | ||
| tags: css, blazor, wizard, text, wrap, ui, telerik | ||
xristianstefanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| res_type: kb | ||
| ticketid: 1671064 | ||
xristianstefanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --- | ||
|
|
||
| ## Environment | ||
|
|
||
| <table> | ||
| <tbody> | ||
| <tr> | ||
| <td>Product</td> | ||
| <td>Wizard for Blazor</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| ## Description | ||
|
|
||
| I am wondering if there's a way to allow the `TelerikWizard` to show the full text. For instance, step labels in my Wizard component are getting cut off, and I wish to display the complete text by wrapping it onto the next line. | ||
xristianstefanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Solution | ||
|
|
||
| To ensure that the text within the wizard steps wraps properly and the full text is displayed, apply the following CSS styles. | ||
xristianstefanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| >caption These styles allow the text to wrap within the wizard steps and break words if necessary to fit the content within the available space. | ||
xristianstefanov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ````RAZOR | ||
| <style> | ||
| .k-wizard .k-step .k-step-text { | ||
| white-space: normal; /* Allow text to wrap */ | ||
| word-wrap: break-word; /* Break words if necessary */ | ||
| } | ||
| </style> | ||
|
|
||
| <TelerikWizard @bind-Value="@WizardValue"> | ||
| <WizardSteps> | ||
| <WizardStep Label="Start Start Start Start Start" Icon="@SvgIcon.Gear"> | ||
| <Content> | ||
| <p>Welcome to the Wizard!</p> | ||
| </Content> | ||
| </WizardStep> | ||
| <WizardStep Label="Survey Survey Survey Survey Survey" Icon="@SvgIcon.Pencil"> | ||
| <Content> | ||
| <p>The user is performing some actions...</p> | ||
| </Content> | ||
| </WizardStep> | ||
| <WizardStep Label="Finish" Icon="SvgIcon.Check"> | ||
| <Content> | ||
| <p>Thank you!</p> | ||
| </Content> | ||
| </WizardStep> | ||
| </WizardSteps> | ||
| </TelerikWizard> | ||
|
|
||
| <p><strong>Wizard Value: @WizardValue</strong></p> | ||
|
|
||
| @code { | ||
| private int WizardValue { get; set; } | ||
| } | ||
| ```` | ||
|
|
||
| ## See Also | ||
|
|
||
| - [Wizard Overview](https://docs.telerik.com/blazor-ui/components/wizard/overview) | ||
| - [Override the Theme or Apply Custom CSS Styles]({%slug themes-override%}) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.