Class: UI::Notification
- Inherits:
-
Object
- Object
- UI::Notification
Overview
Extend the notification bar. It will not dismiss if the timeout expires without calling the dismiss block.
Class Method Summary # collapse
Instance Method Summary # collapse
-
#message ⇒ String
Body.
-
#message= ⇒ String
Set the summary.
-
#icon_name ⇒ String
Icon path.
-
#icon_name= ⇒ String
Set the icon path.
-
#icon_tooltip ⇒ String
Icon tooltip.
-
#icon_tooltip= ⇒ String
Set the icon tooltip.
-
#on_accept(title) ⇒ true
Title of the Accept button and its callback.
-
#on_dismiss(title) ⇒ true
Title of the close button and callback. Dismisses without calling the callback after a timeout.
-
#on_accept_title ⇒ String
The current title of the accept button.
-
#on_dismiss_title ⇒ String
Title of the close button.
-
#show ⇒ Boolean
Display the notification. Return false if no host is available.
Class Method Details
Notification.new(extension, message = nil, icon_name = nil, icon_tooltip = nil) ⇒ notification
Instance Method Details
notification.message ⇒ String
Body.
notification.message = text ⇒ text
Set the summary.
notification.icon_name ⇒ String
Icon path.
notification.icon_name = path ⇒ path
Set the icon path.
notification.icon_tooltip ⇒ String
Icon tooltip.
notification.icon_tooltip = text ⇒ text
Set the icon tooltip.
notification.on_accept(title) { } ⇒ truenotification.on_accept(title, proc) ⇒ true
Title of the Accept button and its callback.
notification.on_dismiss(title) { } ⇒ truenotification.on_dismiss(title, proc) ⇒ true
Title of the close button and callback. Dismisses without calling the callback after a timeout.
notification.on_accept_title ⇒ String
The current title of the accept button.
notification.on_dismiss_title ⇒ String
Title of the close button.
notification.show ⇒ Boolean
Display the notification. Return false if no host is available.