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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejribbon give me an error

Thread ID:

Created:

Updated:

Platform:

Replies:

144755 May 21,2019 10:49 AM UTC May 24,2019 10:56 AM UTC Angular 3
loading
Tags: ejRibbon
Luis Carlos
Asked On May 21, 2019 10:49 AM UTC

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.

Christopher Issac Sunder K [Syncfusion]
Replied On 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 


Luis Carlos
Replied On 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.

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On 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 


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

Live Chat Icon For mobile
Live Chat Icon