APIs

Show:

Item Index

Methods

create

(
  • message
  • classname
  • timeout
)
Undefined

create an alert

Parameters:

  • message String

    The message to display

  • classname String

    The class to apply to the alert

  • timeout Integer

    The timeout, in milliseconds, or -1 for never

Returns:

Undefined:

error

(
  • message
  • timeout
)
Undefined

error type alert

Parameters:

  • message String

    The message to display

  • timeout Integer

    The timeout, in milliseconds, or -1 for never

Returns:

Undefined:

hide

() Undefined

hide the alert box

Returns:

Undefined:

loading

() Undefined

show a Loading... message indefinitely until manually hidden

Returns:

Undefined:

message

(
  • message
  • timeout
)
Undefined

message type alert

Parameters:

  • message String

    The message to display

  • timeout Integer

    The timeout, in milliseconds, or -1 for never

Returns:

Undefined:

setup

(
  • callback
)
Undefined

Initialize the alert by adding a

to the canvas body

Parameters:

  • callback Function

    Called when alert is available

Returns:

Undefined: