RoomleConfigurator.Internal.default-9

configurator-core/src/roomle-configurator.internal.default

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default(creator)

Parameters

NameType

creator

string

Properties

_creator_

_creator_: string

Implementation of

Context.creator

Methods

canRedo

canRedo(): boolean

checks if there are newer configurations

Returns

boolean

true if current configuration is not the latest configuration


canUndo

canUndo(): boolean

checks if there are any changes on the item already happened

Returns

boolean

true if the current configuration is not the default configuration


clearHistory

clearHistory(): void

clears history and make new empty history array sets index on 0 that no undo and redo is possible

Returns

void


getHistory

getHistory(): string[]

Returns

string[]

array of all configuration strings


push

push(configurationString): void

pushes new configurationString to history Array is called when changes on the item happened

Parameters

NameType

configurationString

string

Returns

void


redo

redo(): string

loads the configurationString of the configuration which was set before undo function was called only possible if undo function was called before

Returns

string

configurationString of configuration before undo was called or null if canRedo returns false


undo

undo(): string

loads the configurationString of the configuration which was set before only possible if there are some changes on the current item

Returns

string

configurationString of lastAction or null if canUndo returns false

Last updated