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

ShiftableComposedControl

Extends:

ControlComposedControl → ShiftableComposedControl

Direct Subclass:

MobileControls

This class displays only a given amount of the containing controls and arrows to switch through these

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private
private
private

Method Summary

Public Methods
public

addControl(control: Control, options: g4uControlOptions)

public

shiftControls(shift: *)

Shift the controls the given amount of steps to the left.

Inherited Summary

From class ComposedControl
public
public
public
private

$container_: jQuery

private
private
private
private
public

addControl(control: Control, options: Object)

public

used by positioning

public
public

get$Container(): jQuery

public
public

isSqueezable(dimension: string): boolean

Returns true if the control is squeezable in the given dimension.

public

release(dimension: string)

Removes the squeeze.

public

removeControl(control: Control, propagate: boolean)

public

setMap(map: G4UMap)

public

squeezeBy(dimension: string, value: number): number

Squeezes the control in the given dimension by the provided value.

public
private

addClasses_($item: jQuery): jQuery

This method adds some helping css classes to the items

Public Constructors

public constructor(options: ShiftableComposedControlOptions) source

Override:

ComposedControl#constructor

Params:

NameTypeAttributeDescription
options ShiftableComposedControlOptions

Private Members

private $moveLeftButton_: jQuery source

private $moveRightButton_: jQuery source

private position_: number source

private visibleControls_: number source

Public Methods

public addControl(control: Control, options: g4uControlOptions) source

Override:

ComposedControl#addControl

Params:

NameTypeAttributeDescription
control Control
options g4uControlOptions

public shiftControls(shift: *) source

Shift the controls the given amount of steps to the left. if the value is negative, the controls are shifted to the right

Params:

NameTypeAttributeDescription
shift *