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

Font Awsome Icons not show anymore in title bar

1 Answer 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
Baba
Top achievements
Rank 1
Baba asked on 31 May 2017, 01:37 PM

we were using font awesome icons on windows title bars. after upgrade to last kendo version, it doesn't work anymore 

sintax was --- modal.setOptions({
                modal: true,
                width: "45%",
                height: "55%",
                minHeight: 440,
                title: "<span class='fa fa-info'></span> About..",
                actions: ["Minimize", "Maximize", "Close"],
            });

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Jun 2017, 08:34 AM
Hello Baba,

The observed behavior has been introduced after the R1 SP1 (2017.1.223) release.

At this point adding HTML to the Kendo UI Window's title property is no longer supported. This change has been introduced in order to prevent any possibility of a script injection when using this property.

As a workaround for this I can suggest using the jQuery API to append/prepend the needed HTML:
wnd.element.prev().find(".k-window-title").html("<span class='custom'>drag me</div>")

I have also setup a working Dojo example for you, which you can find here.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Window
Asked by
Baba
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or