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

Toolbar icons not showing

I picked this straight from a sample

<ejs-toolbar>
  <e-items>
    <e-item text='Cut' prefixIcon = 'e-cut-icon'></e-item>
    <e-item text='Copy' prefixIcon = 'e-copy-icon'></e-item>
    <e-item text='Paste' prefixIcon = 'e-paste-icon'></e-item>
    <e-item type='Separator'></e-item>
    <e-item text='Undo' prefixIcon = 'e-bold-icon'></e-item>
    <e-item text='Redo' prefixIcon = 'e-underline-icon'></e-item>
    <e-item text='Redo' prefixIcon = 'e-italic-icon'></e-item>
    <e-item type='Separator'></e-item>
    <e-item text='A-Z Sort' prefixIcon = 'e-ascending-icon'></e-item>
    <e-item text='Z-A Sort' prefixIcon = 'e-descending-icon'></e-item>
    <e-item text='Clear' prefixIcon = 'e-clear-icon'></e-item>
  </e-items>
</ejs-toolbar>

after following this procedure...


My toolbar displays but the e-* icons do not show.
Exactly what styles do I need to import on styles.css to have access to e-* named icons?
Here is what I have imported so far
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
@import '../node_modules/@syncfusion/ej2-spreadsheet/styles/material.css';


1 Reply

VM Vengatesh Maniraj Syncfusion Team February 6, 2020 09:35 AM UTC

Hi Alain dEspaignet, 

Greetings from Syncfusion Support. 

We have checked your problem at our end. We suspect that you did not add the CSS for the toolbar icons in app.component.css file. So that, icons are not rendered in DOM. Kindly add the below style in app.component.css file and check it. 

app.component.css : 
.e-cut-icon:before { 
  content: "\e719" 
} 
 
.e-copy-icon:before { 
  content: "\e721" 
} 
 
.e-paste-icon:before { 
  content: "\e712" 
} 
 
.e-color-icon:before { 
  content: "\e703"; 
} 
 
.e-bold-icon:before { 
  content: "\e71a" 
} 
 
.e-underline-icon:before { 
  content: "\e706"; 
} 
 
.e-clear-icon:before { 
  content: "\e70d" 
} 
 
.e-italic-icon:before { 
  content: "\e710" 
} 
 
.e-ascending-icon:before { 
  content: "\e70f"; 
} 
 
.e-descending-icon:before { 
  content: "\e707"; 
} 


Please let us know if you have concerns. 

Regards, 
Vengatesh 


Loader.
Live Chat Icon For mobile
Up arrow icon