Notification view interface

The NotificationView object stores information about a work unit notification.

Interface

property title

Defaults to the task title.

property emailSubject

Defaults to the title.

property action

The URL for the button rendered in the notification, defaults to the task URL.

property status

Defaults to the notification-status or status text defined for the current state.

property button

The label for the button, defaults to the notification-action-label or action-label for the current state.

function addHeaderDeferred

Call this function with one argument, the deferred render of the template to display at the top of the notification. Can be called multiple times.

function addNoteText

Call this function with one argument, a string to be rendered with std:text:paragraph between the status and the button. Can be called multiple times.

function addNoteDeferred

Call this function with one argument, the deferred render of the template to display between the status and the button. Can be called multiple times.

function addEndDeferred

Call this function with one argument, the deferred render of the template to display at the bottom of the notification. Can be called multiple times.