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

RewireMixin

Extends:

ControlLogicMixin → RewireMixin

This class does all generic rewiring including catching the target and restyling the tooltips It is important to provide a className in the control because else it will not be possible to find the control in the ol-viewport

Method Summary

Public Methods
public
public

rewire()

This function tweaks the control a little bit

Inherited Summary

From class ControlLogicMixin
public
public
private
private
private

float_: string[] | string

private
private
private
private
private
private
public

get$Element(): jQuery

Returns the element of the control

public

get$Target(): jQuery

Returns the target of the control

public

Returns the CSS-className of the control

public

Returns the name of the control if given to the constructor

public

Returns the floating directions of the control

public
public
public

Returns the tipLabel of the control if given to the constructor

public

Returns the title of the control if given to the constructor

public
public
public

Returns true if the element consists only of a single button

public
public

set$Target($target: jQuery)

Sets a new target for the control

public
public
public

setVisible(visible: boolean)

Public Methods

public initialize(options: g4uControlOptions) source

Override:

ControlLogicMixin#initialize

Params:

NameTypeAttributeDescription
options g4uControlOptions
  • optional
  • default: {}

public rewire() source

This function tweaks the control a little bit