Toast API Reference


animation string advanced
appendTo any null
autoClose boolean false
autoCloseDelay number 3000
autoOpen boolean false
disabled boolean false
itemTemplate string null
locale string en
localizeFormatFunction function null
messages object {“en”:{“propertyUnknownType”:”‘{{name}}’ property is with undefined ‘type’ member!”,”propertyInvalidValue”:”Invalid ‘{{name}}’ property value! Actual value: {{actualValue}}, Expected value: {{value}}!”,”propertyInvalidValueType”:”Invalid ‘{{name}}’ property value type! Actual type: {{actualType}}, Expected type: {{type}}!”,”elementNotInDOM”:”Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.”,”moduleUndefined”:”Module is undefined.”,”missingReference”:”{{elementType}}: Missing reference to {{files}}.”,”htmlTemplateNotSuported”:”{{elementType}}: Browser doesn’t support HTMLTemplate elements.”,”invalidTemplate”:”{{elementType}}: \”{{property}}\” property accepts a string that must match the id of an HTMLTemplate element from the DOM.”}}
modal boolean false
position string top-right
readonly boolean false
showCloseButton boolean false
theme string
type string info
unfocusable boolean false
value any


click Event
close Event
open Event
swipebottom Event
swipeleft Event
swiperight Event
swipetop Event


closeAll Method
closeItem Method
closeLast Method
open Method