DxSchedulerTodayToolbarItem Class
The toolbar item that allows you to navigate to the current date.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public class DxSchedulerTodayToolbarItem :
SchedulerToolbarItemBase
Remarks
Users can click the Today button to navigate to the time interval that contains the current date.
The DxSchedulerTodayToolbarItem
partly supports toolbar item functionality. Refer to the following list for more information on available options: API Reference.
Note that Today buttons create a new group and have a predefined tooltip, unlike regular toolbar items:
Property | Toolbar Item Default Value | Previous Interval Default Value |
---|---|---|
BeginGroup | false |
true |
Tooltip | "" |
Scheduler_TodayButton |
The following example displays a Today button on the toolbar and changes its tooltip to display the current date:
<DxScheduler StartDate="DateTime.Today"
DataStorage="DataStorage">
<Views>
<DxSchedulerDayView />
</Views>
<ToolbarItems>
<DxSchedulerTodayToolbarItem Tooltip=@GetCurrentDate() />
<DxSchedulerPreviousIntervalToolbarItem />
<DxSchedulerNextIntervalToolbarItem />
<DxSchedulerDateNavigatorToolbarItem />
</ToolbarItems>
</DxScheduler>
@code {
string GetCurrentDate() {
return "Today is " + DateTime.Today.ToString("MMMM dd, yyyy");
}
}
Inheritance
Object
ComponentBase
DxComponentBase
DevExpress.Blazor.Base.DxAsyncDisposableComponent
DxSettingsComponent
DxToolbarItemBase
DxToolbarItem
DevExpress.Blazor.Scheduler.Internal.SchedulerToolbarItemBase
DxSchedulerTodayToolbarItem
See Also