-
Notifications
You must be signed in to change notification settings - Fork 3
Home
laurie71 edited this page May 2, 2011
·
8 revisions
Welcome to the jquery-toaster wiki!
The toast plugin is used to actually create and manipulate toast messages. To create a toast:
$(selector).toast();where selector is a jQuery selector for some existing page content to convert into a toast message, or the markup of the toast message itself, as in:
$('<p>This is a toast message.</p>').toast();-
closeText default: Close
- The text to use as the
titleattribute on the close link/icon.
- The text to use as the
-
duration default: 6000
- The duration, in milliseconds, after which the toast message will
fade away. To prevent toasts from fading out automatically, see
the
stickyoption.
- The duration, in milliseconds, after which the toast message will
fade away. To prevent toasts from fading out automatically, see
the
-
selector default: .toaster
- The jQuery selector for the toast message container.
If
selectordoesn't match an element on the page, it will be created.
- The jQuery selector for the toast message container.
If
-
sticky default: false
- By default toast messages fade away after a short time (see the
durationoption). Setstickyto false to make a toast stay until closed by the user.
- By default toast messages fade away after a short time (see the
-
type default: none
- The type of toast message:
none,info,notice,warnanderrorare supported by default. Specifyingnonewill remove the icon image to the left of the notice content.
- The type of toast message:
-
width default: 200
- The width of the toast message.
-
close
- fired when a toast message is closed.