Feature

ve. Feature

ve.Feature: Features in Vercengen represent special containers such as panels, windows, tooltips, or interface which encapsulate ve.Component types.

Used to automatically destructure arg0_components_obj.

Constructor:
DOM:
Instance:
  • .child_class=this.constructor: ve.Feature - The constructor object of the child class.
  • .child_class_obj=ve[htis.child_class.prototype.constructor.name]: ve.Feature - The actual object of the child class.
  • .components_obj: Array<ve.Component>
  • .id: string
  • .is_vercengen_feature=true: boolean - Whether to mark this ve.Feature as a Vercengen feature.
  • .options: Object
Methods:
  • addComponents(arg0_components_obj:Object<ve.Component>) - Appends new components to the present ve.Feature.
  • close() - Alias for .remove()
  • remove() - Removes the current feature.
  • removeComponents(arg0_components_obj:Object<ve.Component>) - Removes components from the current this.element based on key names.
  • updateOwner() - Updates the .owner/.owners fields for all encapsulated components to ve.Feature if no ve.Class owner could be found.
Static Fields:
Types:
Source:

Classes

ve.Confirm
ve.ContextMenu
ve.Modal
ve.Navbar
ve.PageMenuWindow
ve.Scene
ve.Toast
ve.Tooltip
ve.Window

Members

instances :Array.<ve.Feature>

Source:
Type:

Methods

addComponents(arg0_components_obj)

Adds components to the present this.element.

Source:
Parameters:
Name Type Description
arg0_components_obj Object

close()

Alias for this.remove().

Source:

remove()

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

Source:

removeComponents(arg0_components_obj)

Removes components from the present this.element.

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.

Source: