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

Styling WindowAction

1 Answer 482 Views
Window
This is a migrated thread and some comments may be shown as answers.
aehlert
Top achievements
Rank 1
Veteran
aehlert asked on 22 Jan 2021, 05:54 PM

With the release of 2.21 we can apply styles to the windows elements, and that is great!

How can we apply these styles to the WindowAction elements?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 22 Jan 2021, 08:47 PM

Hi,

You can customize them through CSS cascading through the parent class in case the built-in settings don't suffice for you: https://docs.telerik.com/blazor-ui/components/window/actions.

For example:

<style>
    .my-custom-actions .k-window-titlebar button {
        border: 2px solid blue !important;
        background: yellow !important;
        color: green !important;
    }
</style>

<TelerikWindow Visible="true" Class="my-custom-actions">
    <WindowActions>
        <WindowAction Name="MyAction" Icon="gear"  />
        <WindowAction Name="Close" />
    </WindowActions>
    <WindowTitle>
        Optional title
    </WindowTitle>
    <WindowContent>
       lorem ipsum
    </WindowContent>
</TelerikWindow>

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
aehlert
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or