livefeed
Live list of events, such as visits or AI agents arriving, with the newest first, relative times in the language of the page, a pause button and optional announcements for screen readers
The list of what is happening now: visits arriving, AI agents reading pages, orders, errors. The newest item is on top and slides in; the times are relative ("now", "7 sec. ago", "3 min. ago") and are updated every 10 seconds. The pause button stops the list so it can be read, counts the new items while paused, and shows them on resume (moving content that can be paused, as WCAG asks).
The model is an Array of items, the newest first:
[{ id: 15, time: new Date(), text: '/pricing', sub: 'Spain · Google', icon: 'ti ti-eye', tag: 'New' }]idkeeps the identity of an item between updates (without it the time and the text are used), so only the really new items slide in.timeis aDate, a timestamp or an ISO string;iconis a Total.js icon andimagea URL of a small image (a favicon, a flag) instead of it;subis a second line andtaga small label.- Only the first
limititems are shown; withheightthe list scrolls. - The list has the role
log. Withannounce:truea screen reader reads the new items; it is off by default, because a busy feed would talk all the time. - With
clickevery item is a button, and the focus stays on the same item when the list changes. - The label is the content of the tag, so it can contain markup and
@(...)translations.
Configuration:
label {String}the label when the content of the tag is empty (default:'')style {String}card(a box) orminimal(no box) (default:card)limit {Number}the maximum count of items (default:20)height {Number}the maximum height of the list in pixels,0is no limit (default:0)pause {String}the text of the pause button, example:Pause; empty hides the button (default:'')resume {String}the text of the button while paused, example:Resume(default:'')announce {Boolean}screen readers read the new items (default:false)locale {String}a language for the relative times, example:es-ES; empty is the language of the page (default:'')
Callbacks:
click {String}link to a globalfunction(item, component), executed when the user clicks an item;itemis the item of the model
Runtime: jComponent v20, no dependencies.




