You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/calendar/navigation.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,17 +48,17 @@ The calendar offers several views that show the user different periods of time:
48
48
49
49
The user can click on an item in the current view to go to the more detailed view. They can click the current range at the top to navigate to the larger view where navigating bigger portions of time is easier (for example, years, or even decades).
50
50
51
-
You can control the initial view by setting the `View` property to a member of the `Telerik.Blazor.CalendarView` enum as listed above.
51
+
To control the initial view, set the `View` property to a member of the `Telerik.Blazor.CalendarView` enum, as listed above.
52
52
53
-
You can control how much detail the user can go into by setting the `BottomView`property to the same enum. Once the user reaches this bottom view, clicking the items selects them and does not navigate to a more detailed view.
53
+
To control how much detail the user can go into, set the [`BottomView`and `TopView`](#topview-and-bottomview) parameters to a member of the same enum.
54
54
55
55
>caption Control current view and how deep the user can go
56
56
57
57
````CSHTML
58
-
The user starts in the Decade view and can only go down to years.
58
+
The user can only go down to years on both - TopView and BottomView.
@@ -78,13 +78,15 @@ The user starts in the Decade view and can only go down to years.
78
78
}
79
79
````
80
80
81
-
>caption The behavior of the code snippet above
81
+
## TopView and BottomView
82
82
83
-

83
+
`BottomView` sets the greatest level of detail the user can navigate. Its default value is `CalendarView.Month`. If `View` is not set, the Calendar will initially display its `BottomView`.
84
+
85
+
`TopView` sets the least level of detail (i.e. greatest level of date aggregation). Its default value is `CalendarView.Century`.
84
86
85
87
## Programmatic Navigation
86
88
87
-
You can make the Calendar component move to a certain date and view through its `Date` and `View` parameters that support two-way binding. The constraints of the min/max and bottom view apply to programmatic navigation as well as to user navigation.
89
+
You can make the Calendar component move to a certain date and view through its `Date` and `View` parameters that support two-way binding. The constraints of the min/max and top/bottom view apply to programmatic navigation as well as to user navigation.
88
90
89
91
>caption Navigate the Calendar to a date and view programmatically
0 commit comments