<ch5-list id="demo-list-1" size="5" orientation="horizontal" indexId="idx"> <template> <div class="horizontal-list-item"> <span>item_{{idx}}</span> </div> </template> </ch5-list>
.horizontal-list-item { border: 1px solid transparent; color: #155724; background-color: #d4edda; border-color: #c3e6cb; padding:10px; }
<ch5-list id="demo-list-2" size="5" orientation="vertical" indexId="idx"> <template> <div class="vertical-list-item"> <span>item_{{idx}}</span> </div> </template> </ch5-list>
.vertical-list-item { border: 1px solid transparent; color: #155724; background-color: #d4edda; border-color: #c3e6cb; padding: 10px; }