@vcl/vcl
Version:
The whole VCL in one package
60 lines (40 loc) • 1.52 kB
Markdown
# [VCL](https://vcl.github.io/vcl/) data-list
Tabular data browser, selection list and navigation menu.
## Features
A versatile browser for tabular data where the actual layout
of a single item is more flexible as with a normal table.
It can be easily made responsive due to the layout flexibility.
It can have an optional header and footer.
Items of the list can visually suggest their selectability.
## Usage
As property editor with header and footer. The edit button should only be shown
on hover in a real application.
[basic example](/demo/example-basic.html)
As data browser with simple but space efficient key/ value list.
[browser example 1](/demo/example-browser-1.html)
As data browser with image and complex layout.
[browser example 2](/demo/example-browser-2.html)
## Classes
- `data-list`
- `data-list-header`
- `data-list-body`
- `data-list-item`
- `data-list-footer`
## Modifiers
### For `data-list`
- `divider`: Show a vertical divider (border) between items.
- `item-hover-highlight`: Highlight a item when hovered.
- `item-selectability`: Suggest through styling that the item is selectable.
- `no-border`: No top/ bottom borders.
### For `data-list-item`
- `selected`
## Variables
- `$data-list-bg-color`
- `$data-list-header-bg-color`
- `$data-list-footer-bg-color`
- `$data-list-border-color`
- `$data-list-item-separator-border-color`
- `$data-list-item-hover-color`
- `$data-list-item-bg-hover-color`
- `$data-list-item-selected-color`
- `$data-list-item-bg-selected-color`