List of work to do
You fit open or fold di list. E show how many tasks still dey and how many dey altogether, and e put tasks wey never finish first, according to how important dem be.
Tables, data grids, stats, trees, heatmaps and pages.
lr-todo-list
import '@aceshooting/lyra-ui/components/lr-todo-list.js';Example
<lr-todo-list open></lr-todo-list>
<script type="module">
import '@aceshooting/lyra-ui/components/lr-todo-list.js';
const list = document.querySelector('lr-todo-list');
list.items = [
{ text: 'Review the draft', severity: 'urgent', icon: 'check', count: 3, action: 'review-draft' },
{ text: 'Read the component guide', severity: 'info', href: '/docs/?path=/docs/data-display-todo-list--docs' },
{ text: 'Gather feedback', done: true },
];
list.addEventListener('lr-action', ({ detail }) => {
list.items = list.items.map(item => item.action === detail.action
? { ...item, text: 'Draft reviewed', done: true, action: undefined }
: item);
});
</script>Components wey relate
- Bar list — E rank di values wey get label as flat DOM bars, with numbers wey dem format for di locale and real text labels.
- Round bar — E draw SVG progress rings wey share di same center, one for each category, with legend wey you fit choose to add wey also work as di accessible list.
- Category bar — E divide one flat bar into threshold ranges, with marker wey you fit choose to add wey point to one value for di scale.
- Statistic — One KPI with unit, trend, breakdown rows and optional sparkline.
- Table — Data table wey show sortable headings, selection, filters and page navigation.
- Time strip — E dey show parts wey get label for where dem suppose dey on top number axis, with space between parts, marks for edge and data table.