Thanks for using Syncfusion products.
Query: I need to display a suffix icon on the right of a button, when I set suffixIcon it is not working as expected.
We would like to inform you that, “suffixIcon” API works only if the value of “contentType” API is set as “ej.ContentType. ImageTextImage” or “ej.ContentType. ImageBoth”. The “suffixIcon” API is used to set the secondary icon for button.
On analyzing the provided sample it is found that, you have used the “suffixIcon” API when the “contentType” API is set to “ej.ContentType.TextAndImage”. So, the image was not displayed in your sample.
We have made the above mentioned changes in your sample and re-attached it in the following location.
Also if you want to know more about our components to getting started, please find the below link.
In order to know more detailed information please refer the below link which includes all the details to get started with our components.
Also you can find all the samples of our components in the following link location.
If still you face any difficulties in setting the image on the right of a button, please get back to us we will be happy to assist you.
Thanks for your update.
Query: I need to display only a suffix icon (without any space for the prefix). There is a better way to define an ejButton with only a suffix icon?
Yes, the code that you have mentioned in your query is the better way to define the ejButton with suffix icon and there is no any other stuff to define the ejButton with suffix icon.
Please let us know if you have any queries.