-
Notifications
You must be signed in to change notification settings - Fork 80
[3.7] docs(calendar, daterangepicker): size and orientation documentation #1188
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
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bc119a5
docs(calendar, datepickers): add calendar features, size and orientat…
ntacheva 7581e42
Update components/calendar/overview.md
ntacheva f87c134
Update components/calendar/overview.md
ntacheva 0fe97ac
Update components/calendar/appearance.md
ntacheva 79921a7
Update components/calendar/appearance.md
ntacheva 08d5544
Update components/calendar/overview.md
ntacheva 036bf5d
Update components/calendar/overview.md
ntacheva a85a105
Update components/daterangepicker/overview.md
ntacheva a2ac3dc
Update components/daterangepicker/overview.md
ntacheva b0b13d6
Update components/daterangepicker/overview.md
ntacheva 4501104
Update components/daterangepicker/overview.md
ntacheva ae4e08d
Update components/calendar/overview.md
ntacheva 992a8f3
Update components/calendar/appearance.md
ntacheva e8d70e1
chore(calendar, daterangepicker): address feedback and some fixes
ntacheva 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,53 @@ | ||
| --- | ||
| title: Appearance | ||
| page_title: Calendar Appearance | ||
| description: Appearance settings of the Calendar for Blazor. | ||
| slug: calendar-appearance | ||
| tags: telerik,blazor,calendar,appearance | ||
| published: True | ||
| position: 30 | ||
| --- | ||
|
|
||
| # Appearance Settings | ||
|
|
||
| This article outlines the available Calendar parameters, which control its appearance. | ||
|
|
||
| ## Size | ||
|
|
||
| You can increase or decrease the size of the Calendar by setting the `Size` attribute to a member of the `Telerik.Blazor.ThemeConstants.Calendar.Size` class: | ||
|
|
||
| | Class member | Manual declaration | | ||
| |---|---| | ||
| |`Small` |`sm`| | ||
| |`Medium`|`md`| | ||
| |`Large`|`lg`| | ||
|
|
||
| This configuration affects the size of the whole Calendar and its inner elements - header, navigation buttons, cells. The elements' size, padding and font-size vary depending on the selected Calendar size. | ||
|
|
||
| >caption The built-in Calendar sizes | ||
|
|
||
| ````CSHTML | ||
| @{ | ||
| var fields = typeof(Telerik.Blazor.ThemeConstants.Calendar.Size) | ||
| .GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static | ||
| | System.Reflection.BindingFlags.FlattenHierarchy) | ||
| .Where(field => field.IsLiteral && !field.IsInitOnly).ToList(); | ||
|
|
||
| foreach (var field in fields) | ||
| { | ||
| string size = field.GetValue(null).ToString(); | ||
|
|
||
| <div style="float:left; margin: 20px;"> | ||
| <TelerikCalendar @bind-Value="@DateValue" Size="@size"></TelerikCalendar> | ||
| </div> | ||
| } | ||
| } | ||
|
|
||
| @code { | ||
| private DateTime DateValue { get; set; } = DateTime.Now; | ||
| } | ||
| ```` | ||
|
|
||
| ## See Also | ||
|
|
||
| * [Live Demo: Calendar - Appearance](https://demos.telerik.com/blazor-ui/calendar/appearance) | ||
Binary file not shown.
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
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
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
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
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
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
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
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
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
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.