How to remove a build in Toolbar item from the Angular Schedule component?
Step 1: Implement Scheduler component using our Getting started documentation.
Step 2: To achieve the Scheduler component without the Today button, use the actionBegin event. In this event, you can remove the items which you want to remove in the condition that requestType as toolbarItemRendering to be true.
[app.component.html]
<ejs-schedule #schedule height='650px' [(selectedDate)]="selectedDate" [eventSettings]="eventSettings" (actionBegin)="onActionBegin($event)"> </ejs-schedule> |
[app.component.ts]
public onActionBegin(args: ActionEventArgs): void { if (args.requestType === 'toolbarItemRendering') { args.items = args.items.filter(item => item.text !== 'Today'); } } |
[Output screenshot]
See Also
Conclusion
I hope you enjoyed learning about how to remove a build in Toolbar item from the Angular Schedule component.
You can refer to our Angular Schedule feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Schedule example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!