Home Reference Source
import {Window} from 'guide4you/src/html/Window.js'
public class | source

Window

Extends:

ol/Object~BaseObject → Window

A HTML Window

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

scroll_: *

Private Members
private

$body_: jQuery

private

$button_: jQuery

private

$context_: jQuery

private

$element_: jQuery

private
private

$scrollWrapper_: jQuery

private
private
private
private
private
private
private
private

Method Summary

Public Methods
public

get$Body(): jQuery

public

get$Element(): jQuery

public

Moves the window in front of all other elements inside its context

public
public

setVisible(visible: boolean, popHistory: boolean)

public

updateSize(initialize: boolean)

Fixes width and height depending on the current content on the popup.

Private Methods
private

Makes the Window draggable

private

Reset the dragged state

private

Enables/Disables the scroll lib needed for mobile scrolling

Public Constructors

public constructor(options: WindowOptions) source

Params:

NameTypeAttributeDescription
options WindowOptions

Public Members

public scroll_: * source

Private Members

private $body_: jQuery source

private $button_: jQuery source

private $context_: jQuery source

private $element_: jQuery source

private $positionWrapper_: jQuery source

private $scrollWrapper_: jQuery source

private classNameBody_: string source

private classNameButtonClose_: string source

private className_: string source

private draggable_: boolean source

private fixedPosition_: boolean source

private map_: G4UMap source

private shieldActivated_: boolean source

private visible_: boolean source

Public Methods

public get$Body(): jQuery source

Return:

jQuery

public get$Element(): jQuery source

Return:

jQuery

public getInFront() source

Moves the window in front of all other elements inside its context

public getVisible(): boolean source

Return:

boolean

public setVisible(visible: boolean, popHistory: boolean) source

Params:

NameTypeAttributeDescription
visible boolean
popHistory boolean
  • optional
  • default: true

public updateSize(initialize: boolean) source

Fixes width and height depending on the current content on the popup. needs to be called when the window is visible.

Params:

NameTypeAttributeDescription
initialize boolean
  • optional
  • default: false

Private Methods

private makeWindowDraggable_() source

Makes the Window draggable

private resetDragged() source

Reset the dragged state

private setEnableMobileScrolling_(scrollable: boolean) source

Enables/Disables the scroll lib needed for mobile scrolling

Params:

NameTypeAttributeDescription
scrollable boolean