This is a migrated thread and some comments may be shown as answers.

Add styles or class to Menu k-popup

2 Answers 2301 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shannon
Top achievements
Rank 1
Shannon asked on 01 Dec 2018, 07:50 AM
How do you add a class / style to the popup rendered when hovering or clicking on a kendo-menu-item?  I see a k-animation-container opening but have no idea how to add styling to it.

2 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 04 Dec 2018, 09:40 AM
Hi Shannon,

We can use the [cssClass] or [cssSyle] input properties of the kendo-menu-item component in order to add any custom CSS class or style. In case we have a Popup or any other Kendo Ui for Angular component, that we want to style differently, than its default appearance, we need to use some custom CSS. Basically, we need to inspect the DOM, in order to locate the default used Kendo styles like the .k-popup class and override them.

Check the following example demonstrating both approaches:
https://stackblitz.com/edit/angular-tkqkg9?file=app%2Fapp.component.ts

I hope this helps. Let me know in case further assistance is required for this case. 

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.
0
Naseer
Top achievements
Rank 1
answered on 04 Jun 2020, 02:04 PM

Thanks Svetlin's, 

it its working for custom styles. Really appreciate your help. 

Tags
General Discussions
Asked by
Shannon
Top achievements
Rank 1
Answers by
Svet
Telerik team
Naseer
Top achievements
Rank 1
Share this question
or