ve.Toast

ve.Feature. ve.Toast

Refer to ve.Feature for methods or fields inherited from the parent, such as automatic destructuring.

Creates a toast spawned at the present cursor. For this component, it is recommended to use a string rather than ve.Component types for the first parameter (arg0_components_obj).

  • Functional binding: veToast().
Constructor:
  • arg0_components_obj: function|Object<ve.Component>|string|ve.Component
  • arg1_options: Object
    • .duration=1200: number - The duration the toast should last in ms. 1,2 seconds by default.
Methods:
  • refresh(arg0_components_obj:Object<ve.Component>) - Refreshes the Toast display if possible.

Constructor

new ve.Toast()

Source:

Extends

Members

instances :Array.<ve.Feature>

Overrides:
Source:
Type:

Methods

addComponents(arg0_components_obj)

Adds components to the present this.element.

Overrides:
Source:
Parameters:
Name Type Description
arg0_components_obj Object

close()

Alias for this.remove().

Overrides:
Source:

remove()

Removes the ve.Feature from its static .instances field in addition to unmounting the feature from the DOM.

Overrides:
Source:

removeComponents(arg0_components_obj)

Removes components from the present this.element.

Overrides:
Source:
Parameters:
Name Type Description
arg0_components_obj Object

updateOwner()

Iterates over all present Vercengen components in ve.Feature and sets their owner to the current Feature if they do not already have populated .owner/.owners fields.

Overrides:
Source: