Class: BindableStack

x3dom. BindableStack

Inheritance

  • BindableStack

Constructor

BindableStack(doc, type, defaultType, getter)

BindableStack constructor

Parameters:
Name Type Description
doc
type
defaultType
getter


Methods

getActive() → {*}

Get currently active bindable of given stack type, creates new if none exists

Returns:

pop(bindable) → {*}

Bindable Stack Replace Pop

Parameters:
Name Type Description
bindable

Returns:

push(bindable)

Bindable Stack Push

Parameters:
Name Type Description
bindable

replaceTop(bindable)

Bindable Stack Replace Top

Parameters:
Name Type Description
bindable

switchTo(target)

Bindable Stack Replace Switch To

Parameters:
Name Type Description
target

top() → {number|null}

Bindable Stack Top

Returns: