Hello,
I copied the code from this example: (https://ej2.syncfusion.com/angular/documentation/listview/how-to/add-and-remove-list-items-from-listview/) and can't get the delete X icon to show up. I'm pretty sure I've added all the necessary css files to styles.css and icons from all the other controls I use show up. That example unfortunately doesn't provide any CSS files so I can't be 100% certain.
Thanks
|
app.component.html
<ejs-listview [dataSource]="data" [fields]="fields">
<ng-template #template let-data="">
<div class="text-content">
{{ data.text }} <span class="delete-icon e-icons"></span>
</div>
</ng-template>
</ejs-listview>
---------------------------------------------------
app.component.css
.delete-icon::before {
content: '\e700';
float: right;
cursor: pointer;
} |
Hi Shalini,
I am facing the same problem in Community Edition
index.html
<link rel='nofollow' href="//cdn.syncfusion.com/ej2/material.css" rel="stylesheet" />
app.component.css
.delete-icon::before {
content: '\e700';
float: right;
cursor:pointer
}
app.component.ts
<ejs-listview
#list
id="sample-list"
[dataSource]="data"
[fields]="fields"
(actionComplete)="onComplete()"
>
<ng-template #template let-data="">
<div class="text-content">
{{ data.text }} <span class="delete-icon e-icons"></span>
</div>
</ng-template>
</ejs-listview>
</div>
}
Hi Scott,
From your shared details, we understand that you are facing an issue while rending Angular ListView component. We suspect that the issue occurs due to the usage of rel='nofollow' in our stylesheet reference link. This will ignore the style reference.
To render any Syncfusion component, you need to add a proper style reference at your end. For your reference, we have attached the sample.
Sample : https://stackblitz.com/edit/angular-reaeu6-dgs8kz?file=index.html
Documentation: https://ej2.syncfusion.com/angular/documentation/appearance/overview/#cdn-direct-referral
Reference taken from the below blob.
Is there any specific reason to use nofollow at your end? Please revert back to us with the details if you need any further assistance.
Regards,
Leo Lavanya Dhanaraj