API Docs for:
Show:

Notifier Class

Module: widgets.notifier
Parent Module: widgets

Display a notification. This is the constructor for the notifier widget.

Methods

_renderBox

(
  • parentNode
)
Undefined protected

Attach the widget bounding box to the DOM. Override to insert new instances before existing ones. This way new notification are displayed on top of the page. The resulting rendering process is also very simplified.

Parameters:

  • parentNode Y.Node object

    The node containing this widget.

Returns:

Undefined: Mutates only.

bindUI

() Undefined

Attach event listeners which bind the UI to the widget state. The mouse enter event on a notification node pauses the timer. The mouse click event on a notification destroys the widget.

Returns:

Undefined: Mutates only.

hideAndDestroy

() Undefined

Hide this widget using an animation and destroy the widget at the end.

Returns:

Undefined: Mutates only.

renderUI

()

Provided by the browser module.

Defined in app/widgets/charm-token.js:22

Create the nodes required by this widget and attach them to the DOM.

renderUI

() Undefined

Create the nodes required by this widget and attach them to the DOM.

Returns:

Undefined: Mutates only.

syncUI

() Undefined

Create and start the timer that will destroy the widget after N seconds.

Returns:

Undefined: Mutates only.

Attributes

description

String

Provided by the browser module.

Defined in app/widgets/charm-token.js:34

Default: ''

icon

String

Provided by the browser module.

Defined in app/widgets/charm-token.js:43

Default: ''

name

String

Provided by the browser module.

Defined in app/widgets/charm-token.js:52

Default: ''

recent_commit_count

Number

Provided by the browser module.

Defined in app/widgets/charm-token.js:61

Default: undefined

recent_download_count

Number

Provided by the browser module.

Defined in app/widgets/charm-token.js:68

Default: undefined