TK.Warning

Adds the class "toolkit-warn" on this.element for a certain period of time. It is used e.g. in TK.ResponseHandle or TK.Knob when the value exceeds the range.

Source:

Methods

warning(element, timeoutopt)

Adds the class toolkit-warn to the given element and sets a timeout after which the class is removed again. If there already is a timeout waiting it gets updated.

Parameters:
Name Type Attributes Default Description
element HTMLElement | SVGElement

The DOM node the class should be added to.

timeout Number <optional>
250

The timeout in ms until the class should be removed again.

Source:
Fires:

Events

warning

Gets fired when TK.Warning#warning was called.

Source: