head>","answerCount":4,"upvoteCount":4,"dateCreated":"2019-01-04T14:28:53","author":{"@type":"Person","name":null},"acceptedAnswer":null,"suggestedAnswer":[{"@type":"Answer","text":"Anybody?","dateCreated":"2019-01-05T10:02:20","upvoteCount":0,"url":"https://www.syncfusion.com/forums/141824/ej-ribbon-not-styled#NDuGgT","author":{"@type":"Person","name":"Sumair Ahmed"}},{"@type":"Answer","text":"Hi Sumair, \r\n\r\nThank you for contacting Syncfusion support. \r\n\r\nIn our Ribbon component, we have provided the theming support for built in elements. For customizable elements, you can provide the required styles in your application level. We suspect your issue is that styling is not applied to the backstage content. You can provide required styles for backstage elements and resolve your reported problem. Please find the code block below, \r\n\r\napp.component.html \r\n\r\n\r\n\r\n\r\n<ej-ribbon id=\"Default\" width=\"100%\" applicationTab.type=\"backstage\" applicationTab.backstageSettings.text=\"FILE\" applicationTab.backstageSettings.height=\"400\" applicationTab.backstageSettings.width=\"100%\" applicationTab.backstageSettings.headerWidth=\"120\"> \r\n <e-applicationtab-backstagesettings-pages> \r\n <e-page id=\"account\" text=\"Office Account\" contentID=\"accountCon\"> \r\n </e-page> \r\n <e-page id=\"close\" text=\"Close\" itemType=\"button\"> \r\n </e-page> \r\n </e-applicationtab-backstagesettings-pages> \r\n <e-tabs> \r\n <e-tab id=\"home1\" text=\"HOME\" [groups]=\"groups1\"> \r\n </e-tab> \r\n <e-tab id=\"insert\" text=\"INSERT\" [groups]=\"insert\"> \r\n </e-tab> \r\n </e-tabs> \r\n</ej-ribbon> \r\n \r\n<div id=\"accountCon\"> \r\n <div class=\"e-userDiv\"> \r\n <span class=\" user-info\">User Information</span> \r\n <div> \r\n <div class=\"e-accuser e-newpageicon\"></div> \r\n <div class=\"e-userCon\"> \r\n <div class=\" user-name\">user</div> \r\n <div class=\" user-mail\">xyz@syncfusion.com</div> \r\n </div> \r\n </div> \r\n </div> \r\n <a href=\"#\">Sign out</a> \r\n</div> \r\n\r\n\r\napp.component.css \r\n\r\n\r\n\r\n\r\n.user-info { \r\n color: #131379; \r\n font-size: 22px; \r\n} \r\n \r\n.user-name { \r\n color: #18f151; \r\n font-size: 18px; \r\n} \r\n \r\n.user-mail { \r\n color: #d02694; \r\n font-size: 18px; \r\n} \r\n\r\nWe have prepared a sample for your reference, please check it - http://www.syncfusion.com/downloads/support/forum/141824/ze/Default887785947 . \r\n\r\nPlease let us know if you require any further assistance. \r\n\r\nThanks, \r\nChristo ","dateCreated":"2019-01-07T11:43:03","upvoteCount":0,"url":"https://www.syncfusion.com/forums/141824/ej-ribbon-not-styled#NDuGtS","author":{"@type":"Person","name":"Christopher Issac Sunder K"}},{"@type":"Answer","text":"Hii copied your code and ir still does not work. Any ideas why its not working on mine?I've attached the code.ThanksAttachment: ribbon_9ed4392b.zip","dateCreated":"2019-01-07T13:46:19","upvoteCount":0,"url":"https://www.syncfusion.com/forums/141824/ej-ribbon-not-styled#NDuLdB","author":{"@type":"Person","name":"Sumair Ahmed"}},{"@type":"Answer","text":"Hi Sumair, \r\n \r\nWe checked your application and suspect that the issue you are facing is that the ribbon component is not rendered. This is because our component related module – “EJAngular2Module” is not imported in below file, \r\n \r\nshell.module.ts \r\n\r\n\r\n\r\n\r\n \r\nimport { EJAngular2Module } from 'ej-angular2'; \r\n \r\n@NgModule({ \r\n imports: [CommonModule, TranslateModule, NgbModule, RouterModule, EJAngular2Module.forRoot()], \r\n declarations: [ShellComponent, RibbonComponent], \r\n schemas: [CUSTOM_ELEMENTS_SCHEMA] \r\n}) \r\n \r\nAlso, the ribbon tab group is not properly defined in your application. The below code is given in your application, \r\n \r\n\r\n\r\n\r\n\r\n \r\n<e-tabs> \r\n <e-tab id=\"home1\" text=\"HOME\" [groups]=\"tabHome\"> \r\n </e-tab> \r\n <e-tab id=\"insert\" text=\"INSERT\" [groups]=\"\"> \r\n </e-tab> \r\n</e-tabs> \r\n \r\n \r\nBut the tab group name given in ribbon.component.ts is groups1 and insert. So, you have to use following code, \r\n \r\n\r\n\r\n\r\n\r\n \r\n<e-tabs> \r\n <e-tab id=\"home1\" text=\"HOME\" [groups]=\"groups1\"> \r\n </e-tab> \r\n <e-tab id=\"insert\" text=\"INSERT\" [groups]=\"insert\"> \r\n </e-tab> \r\n</e-tabs> \r\n \r\nYou have reported issue that styling is not properly applied, but on checking from our side we did not face any issue related to that. In our sample, we have also showcased how to apply custom styling like below, \r\n \r\napp.component.css \r\n\r\n\r\n\r\n\r\n.user-info { \r\n color: #131379; \r\n font-size: 22px; \r\n} \r\n \r\n \r\nIt is applied in the backstage content, \r\n \r\n \r\n \r\nWe have modified your ribbon sample accordingly, please check it - http://www.syncfusion.com/downloads/support/forum/141824/ze/Ribbon-311664551 \r\n \r\nYou can also refer to our documentation given below, \r\nDocumentation for rendering Syncfusion components - https://help.syncfusion.com/angular/gettingstarted/getting-started-angular-cli \r\nGetting started with Ribbon component - https://help.syncfusion.com/angular/ribbon/getting-started \r\n \r\nIs this the issue you are facing? If not please get back to us with the details so that we can assist you further. \r\n\r\nThanks,Christo ","dateCreated":"2019-01-08T09:51:06","upvoteCount":0,"url":"https://www.syncfusion.com/forums/141824/ej-ribbon-not-styled#NDuLZe","author":{"@type":"Person","name":"Christopher Issac Sunder K"}}]}};
Ej-Ribbon not styled | Angular Forums | Syncfusion
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.
The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
CIChristopher Issac Sunder K Syncfusion Team January 7, 2019 11:43 AM UTC
Hi Sumair,
Thank you for contacting Syncfusion support.
In our Ribbon component, we have provided the theming support for built in elements. For customizable elements, you can provide the required styles in your application level. We suspect your issue is that styling is not applied to the backstage content. You can provide required styles for backstage elements and resolve your reported problem. Please find the code block below,
CIChristopher Issac Sunder K Syncfusion Team January 8, 2019 09:51 AM UTC
Hi Sumair,
We checked your application and suspect that the issue you are facing is that the ribbon component is not rendered. This is because our component related module – “EJAngular2Module” is not importedin below file,
You have reported issue that styling is not properly applied, but on checking from our side we did not face any issue related to that. In our sample, we have also showcased how to apply custom styling like below,