We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Icon Buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

140922 Nov 14,2018 11:41 AM UTC Nov 15,2018 09:37 AM UTC JavaScript - EJ 2 1
loading
Tags: Button
Miguel Varela Rodriguez
Asked On November 14, 2018 11:41 AM UTC

Hi Syncfusion team.
I have some icon buttons, and im try to add some margin between text and the icon.
here is my code:
HTML:


JS:
btnCheckAndFirm = document.getElementById('btnCheckAndFirm');
btnCheckAndFirm.innerHTML = "Firmar";
btnCheckAndFirm = new ej.buttons.Button();
btnCheckAndFirm.cssClass = "btnAction";
btnCheckAndFirm.iconCss = "e-icons iconSave";
btnCheckAndFirm.appendTo("#btnCheckAndFirm");
CSS:
.iconSave::before
{
content:url("../img/ic_signature_white_32.png");
padding-right: 30px;
}
thank you in advance
and greets from spain

Silambarasan I [Syncfusion]
Replied On November 15, 2018 09:37 AM UTC

Hi Miguel, 

Thank you for contacting Syncfusion support. 

We have checked your reported requirement and it can be achievable by overriding Button CSS styles as like in the below code example. 


CSS 

<style> 
     
      .iconSave::before 
     
        content:url("../img/ic_signature_white_32.png"); 
        //… 
     
       
      .e-btn .e-btn-icon.iconSave { 
        margin-right: 20px; 
      } 
       
    </style> 


Could you please check the above sample and get back to us if we misunderstood your requirement or need further assistance? 

Regards, 
Silambarasan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;