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.
Unfortunately, activation email could not send to your email. Please try again.

Ribbon - how to use my own images

Thread ID:





130437 May 12,2017 09:02 AM May 15,2017 08:36 AM Angular 1
Tags: ejRibbon
Daniel Barisch
Asked On May 12, 2017 09:02 AM


how can I use my own image files (e.g. png) with the ribbon contents, e.g. a button?


Sarath Kumar P [Syncfusion]
Replied On May 15, 2017 08:36 AM

Hi Daniel, 
You can use your own image types with ribbon button using "prefixIcon" or "suffixIcon" properties of ejButton control. Please refer to the below codes and the attached sample. 
groups1 = [{ 
        text: "New", 
        alignType: "rows", 
        content: [{ 
            groups: [{ 
                id: "new", 
                text: "Png Image", 
                toolTip: "Png Image", 
                buttonSettings: { 
                    width: 100, 
                    prefixIcon: "ribbonimg", 
                 contentType: "imageonly" 
            defaults: { 
                height: 70 
.ribbonimg { 
    backgroundurl(images/Protect.png) no-repeat center; 
Api Links: 
Sarath Kumar P. 


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.

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.