Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151383 | Feb 10,2020 09:23 AM UTC | Feb 13,2020 05:16 AM UTC | Angular - EJ 2 | 5 |
![]() |
Tags: ListView |
<ejs-listview id='listview' [dataSource]='groupData' [fields]='fields'></ejs-listview>
public fields: Object = { htmlAttributes:'Attributes'};
public groupData: any = [
{
"text": "Audi A4",
"id": "9bdb",
"category": "Audi",
"Attributes": {class:"list1"}
},
{
"text": "Audi A5",
"id": "4589",
"category": "Audi",
"Attributes": {class:"list2"}
},
];
<style>
#listview .list1 {
background-color:blue;
}
#listview .list2 {
background-color: skyblue;
font-style: italic;
color: Yellow;
}
</style> |
<style>
#listview li:nth-child(even) {
background-color: blue;
font-style:italic;
}
#listview li:nth-child(odd) {
background-color: skyblue
}
</style> |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.