ImageUrl with additional CSS-Class

3 posts, 1 answers
  1. Dennis
    Dennis avatar
    2 posts
    Member since:
    Nov 2016

    Posted 23 Mar Link to this post

    Hi, 

    I have a small problem with SVG images in the tabstrip-item. Is it possible to give the imageUrl a additional css class?

    Because the SVG-Image has a native size of 64x64 which is much too large for me - I would like to define the size over a css-class instead of create a smaller version.

     

    Thank you and best regards!

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 24 Mar Link to this post

    Hello Dennis,

    The images set to the tabs through the imageUrl field by default have the k-image class. You can use this class to find the HTML elements and add a custom class to them with jQuery:
    $(".k-tabstrip-items .k-image").addClass("MyCustomClass");


    Regards,
    Ivan Danchev
    Telerik by Progress
    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.
  3. Dennis
    Dennis avatar
    2 posts
    Member since:
    Nov 2016

    Posted 28 Mar Link to this post

    Hello Ivan,

    thanks a lot - it's working fine!

     

    Regards,

    Dennis

Back to Top