ve.Window

ve.Feature. ve.Window

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

Represents a Window Feature that contains a set of components which are wrapped inside an Interface.

Constructor:
  • arg0_components_obj: Object<ve.Component>
  • arg1_options: Object
    • anchor="top_left" - Either 'bottom_left'/'bottom_right'/'top_left'/'top_right'.
    • height="auto": number
    • width="12rem": number
    • x=HTML.mouse_x: number
    • y=HTML.mouse_y: number
    • do_not_wrap=false: boolean - Whether to disable wrapping in an always open ve.Interface.
    • mode="window": string - Either 'static_ui'/'static_window'/'window'.
    • name="": string - Auto-resolves to 'Window' instead if .can_rename=true.
    • theme: string - The CSS theme to apply to the Feature.
    • can_close: boolean
    • can_rename: boolean
    • draggable: boolean
    • headless: boolean
    • resizeable: boolean
Instance:
Methods:
  • getZIndex() | number
  • select()
  • setCoords(arg0_x:number, arg1_y:number)
  • setSize(arg0_width:number|string, arg1_height:number|string)
  • refresh(arg0_components_obj:Object<ve.Component>)
Static Fields:
Static Methods:

Constructor

new ve.Window()

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: