Is it possible to configure components globally? For example, I want to disable animation for dropdowns globally instead of doing it each time I use that component.
1 Answer, 1 is accepted
0
Svet
Telerik team
answered on 14 Sep 2018, 11:16 AM
Hi Jacky,
I am afraid, that here is no such global configuration available.
However, for the purpose, we can create our own custom component, that wraps the desired DropDown component and by default sets its animation to be disabled. Then we can use this custom component (which wraps the Kendo Ui for Angular component) instead of the Kendo Ui for Angular one. Check the following example demonstrating this approach: https://stackblitz.com/edit/angular-ry9tba?file=app/app.component.ts
I hope this helps.
Regards,
Svetlin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.