Feedback & overlays / Notifications

Feedback & overlays

Notifications

The popover under the bell, with a tab per category and a row per notification.

import { EcoNotifications } from "vue-ecosphere"

Notifications

Open the bell. Switch categories, click a row to mark it read, or mark them all.

API

NameTypeDefaultDescription
itemsEcoNotification[]—{ id, title, text?, date?, unread?, kind?: 'reply' | 'fup' | 'err' | 'sys', icon?, category?, section? }.
tabsEcoNotificationTab[][]{ key, label, count? }. key 'all' groups every row under its category's label; other tabs group by section.
v-model:openbooleanfalsenotif.is-open. The bell toggles it; Escape and an outside click close it.
v-model:tabstring"all"The selected category tab (arrow keys move between tabs).
title / markAllLabel / viewAllLabel / bellLabelstring—Header, “Mark all as read”, the footer link (empty hides it) and the bell's accessible name.
#triggerslot { attrs, open, toggle }—Replace the bell icon button.
@select / @mark-all / @view-allevents—A row was clicked; the header link; the footer link.