Onsen UI CSS Component Nodivider List Item with Chevron
Last Updated :
18 Jun, 2022
Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop.
Onsen UI CSS Component Nodivider List Item with Chevron is used to create the list items with the chevron icon without the divider. To create the Nodivider list items with chevron, we will use list-item–nodivider and list-item–chevron classes.
Onsen UI CSS Component Nodivider List Item with Chevron Classes:
- list-item–nodivider: This class is used to create a list of items without a divider.
- list-item–chevron: This class is used to create the list item with the chevron icon.
Syntax:
<ul class="list">
<li class="list-item list-item--nodivider
list-item--chevron">
<div class="list-item__center
list-item--nodivider__center">
...
</div>
</li>
...
</ul>
Example 1: The following example demonstrates the Onsen UI CSS Component Nodivider List Item with Chevron.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h2 style = "color: green;" >
GeeksforGeeks
</ h2 >
< strong >
Onsen UI CSS Component Nodivider
List Item with Chevron
</ strong >
< ul class = "list" >
< li class="list-item list-item--nodivider
list-item--chevron">
< div class="list-item__center
list-item--nodivider__center">
GeeksforGeeks 1
</ div >
</ li >
< li class="list-item list-item--nodivider
list-item--chevron">
< div class="list-item__center
list-item--nodivider__center">
GeeksforGeeks 2
</ div >
</ li >
</ ul >
</ center >
</ body >
</ html >
|
Output:
Example 2: The following example demonstrates the Onsen UI CSS Component Nodivider List Item with Chevron.
HTML
<!DOCTYPE html>
< html >
< head >
< link rel = "stylesheet" href =
< link rel = "stylesheet" href =
< script src =
</ script >
</ head >
< body >
< center >
< h2 style = "color: green;" >
GeeksforGeeks
</ h2 >
< strong >
Onsen UI CSS Component Nodivider
List Item with Chevron
</ strong >
< ul class = "list" >
< li class="list-item list-item--nodivider
list-item--chevron">
< div class="list-item__center
list-item--nodivider__center">
GeeksforGeeks 1
</ div >
</ li >
< li class="list-item list-item--nodivider
list-item--chevron">
< div class="list-item__center
list-item--nodivider__center">
< div class = "list-item__title" >
GFG
</ div >
< div class = "list-item__subtitle" >
This is subtitle
</ div >
</ div >
</ li >
< li class="list-item list-item--nodivider
list-item--chevron">
< div class="list-item__center
list-item--nodivider__center">
GFG
</ div >
< div class="list-item__right
list-item--chevron__right">
< div class = "list-item__label" >
Visit
</ div >
</ div >
</ li >
</ ul >
</ center >
</ body >
</ html >
|
Output:
Reference: https://onsen.io/v2/api/css.html#list-category
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...