kor TürkçeGitHub

Inbox

Lists notifications and their actions.

kor/ui/InboxSource

When to use

  • Put it in a Popover or a Sheet opened from the bell.

Examples

Notifications

Loading the example

<k:Inbox action=".onAction">
	<k:InboxItem key="1" person="Ada Yılmaz" title="Approval needed: purchase 8812" text="24,500 TRY, Anadolu Metal" time="5 min ago" actionText="Approve"/>
	<k:InboxItem key="2" state="danger" title="Line 2 stopped" time="20 min ago"/>
	<k:InboxItem key="3" unread="false" state="success" title="Delivery completed" time="Yesterday"/>
</k:Inbox>

API

Properties

NameTypeDefaultDescription
titlestringTitle
unreadOnlybooleanfalseWhether to show unread items only

Aggregations

NameTypeDescription
itemsInboxItem[]Notifications

Events

NameTypeDescription
presskey: string
item: object
A notification was opened and marked as read
actionkey: string
item: object
A row action was pressed
dismisskey: string
item: object
Removal was requested. The application deletes the row
readAllAll were marked as read

InboxItem

A notification.

Properties

NameTypeDefaultDescription
keystringKey
titlestringTitle
textstringDescription
timestringTime text
personstringSender. Shows an avatar instead of the icon
iconstringIcon
statestringnoneStatus
unreadbooleantrueWhether it is unread
actionTextstringRow action text

Related

ToastActivity