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. Image for the cookie policy date
close icon

ejribbon give me an error

I was trying to show in my prject a simple ribbon, but I got always the same error. Can you help me? or give an example project.

this is my index.html


this is my component to render ribbon.


this is the error I got.


Thank you for your help, I appreciate that.

Regards, Luis Carlos.

3 Replies

CI Christopher Issac Sunder K Syncfusion Team May 22, 2019 12:29 PM UTC

Hi Luis, 

Greetings from Syncfusion support. 
  
Based on your requirement , we have prepared an Angular Ribbon sample and the same can be downloaded from the below link. 
  
We suspect that the EJAngular2 modules are not imported in your app.module.ts file. Kindly refer to the above sample and make necessary changes in your project. 

Let us know if you require any other clarifications. 

Thanks, 
Christo 



LC Luis Carlos May 23, 2019 08:10 AM UTC

Good morning.

Thank you very much for your help, finally I could show ejRibbon component in my web, however it contains z-index=10000 and I would like to know how I can change it to z-index=20.

I will be waiting for your reply, thank you again.

Regards, Luis Carlos.


VK Vinoth Kumar Sundara Moorthy Syncfusion Team May 24, 2019 10:56 AM UTC

Hi Luis, 
  
Good day to you. 
  
We would like to let you know that by default, the z-index will be set as “10000” for active content of ejRibbon. We suggest you to add cssClass property for ribbon and apply styles for active content class name through this property to achieve your requirement as shown below, 
  
 [HTML
<ej-ribbon #Default id="Default" width="100%" [cssClass]="cssClass"applicationTab.type="backstage" applicationTab.backstageSettings.text="FILE" applicationTab.backstageSettings.height="400" applicationTab.backstageSettings.width="100%" applicationTab.backstageSettings.headerWidth="120"> 
        <e-applicationtab-backstagesettings-pages> 
            <e-page id="account" text="Office Account" contentID="accountCon"> 
            </e-page> 
            <e-page id="close" text="Close" itemType="button"> 
            </e-page> 
        </e-applicationtab-backstagesettings-pages> 
        <e-tabs> 
            <e-tab id="home1" text="HOME" [groups]="groups1"> 
            </e-tab> 
            <e-tab id="insert" text="INSERT" [groups]="insert"> 
            </e-tab> 
        </e-tabs> 
    </ej-ribbon> 
  
[TS
export class AppComponent { 
    @ViewChild('Default') ribbon: EJComponents<any, any>; 
    defaults = { type: 'button', width: '60', height: '70' }; 
               cssClass = "custom";  
              // .. 
  
[CSS]  
.e-ribbon.custom .e-active-content 
{ 
               z-index:20; 
} 
  
Modified sample can be downloaded from the following link, 
  
  
Regards, 
Vinoth Kumar S 


Loader.
Live Chat Icon For mobile
Up arrow icon