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

Dialog icons on action

1 Answer 670 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor asked on 16 Sep 2016, 12:51 PM

I am missing Dialog forum. Maybe you should create it and then move this topic.

How can I add icon or even better define classes for icon in dialog actions?

$("#dialog").kendoDialog({
  actions: [{
      text: "OK",
      spriteCssClass: "fa fa-check",
      action: function(e){            
      },
  }]
});

1 Answer, 1 is accepted

Sort by
0
Orlin
Telerik team
answered on 20 Sep 2016, 07:57 AM
Extension settings

Hello Matjaž,

The action buttons inside the Dialog accept HTML, so to add an icon class, you can do something like this:

http://dojo.telerik.com/ABiBu/6

Pass a span with the font icon class as the text property of the action. There are some built-in Kendo UI icons and their corresponding CSS classes that are listed at:

http://demos.telerik.com/kendo-ui/styling/icons

I hope this answers your question.

 

Regards,
Orlin
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
palhal
Top achievements
Rank 1
commented on 20 Jan 2025, 01:39 PM

In newer versions of Kendo, the text field is automatically encoded, i.e. it's not possible to use HTML.

Please implement an option for this, as described here: https://github.com/telerik/kendo-ui-core/issues/7783

Ian
Top achievements
Rank 1
commented on 21 Jan 2025, 05:06 PM

This should be marked down as NOT answered
Nikolay
Telerik team
commented on 22 Jan 2025, 09:47 AM

I recommend casting your vote fo this feature in the below link:

https://feedback.telerik.com/kendo-jquery-ui/1655922-add-icon-property-to-dialog-action-buttons

As soon as it gets popular it will be included in the RoadMap for implementation.

Tags
General Discussions
Asked by
Seyfor
Top achievements
Rank 1
Answers by
Orlin
Telerik team
Share this question
or