Fetch KendoUI Icons

Hi,

is it possible to fetch Kendo UI Icons and add them to a button control?

Thanks!

Dear @DryChips,
Not Kendo UI icons, but you can use Office UI Fabric icons, like this:

fd.spRendered(function(){
  $('.my-button').prepend('<i class="ms-Icon ms-Icon--Delete"></i>');
});
1 Like

Perfect, that will suffice!

Thanks as always!

Hi Nikita,

How do I move the position of the icon to the right side of the text?

Dear @DryChips,
Use $('.my-button').append('<i class="ms-Icon ms-Icon--Delete"></i>');

2 Likes

Awesome!

Can I ask how you possess this knowledge? Is there a website you go to learn how to make these changes or is this just knowledge you've developed over the years of being a Web Developer?

Dear @DryChips,
Of course, much comes with experience, but there are plenty of sites where you can learn to code.

I would personally recommend this place to get started for everyone, not an ad, it's a free resource to learn coding and an awesome platform - https://www.freecodecamp.org/ (best courses I've found, even compared to most paid ones)

Additionally, use resources which are available for free, such as:

  1. Many tutorials on HTML, CSS, JavaScript - https://www.w3schools.com/
  2. Great documentation on all things web - Web technology for developers | MDN
  3. Great place to ask general questions - https://stackoverflow.com/
1 Like

Do you know how to animate these icons?

If I hover over the icon I want to make it turn clockwise.

Dear @DryChips,
You can try adding something like this in CSS, but use your icon class:

.ms-Icon--Delete:hover {
  transition: all 0.3s ease-in-out 0s;
  transform: rotate(360deg)!important;
}
1 Like