configurator-core/src/roomle-configurator.internal.default
Table of contents
• new default(creator)
• _creator_: string
Implementation of
Context.creator
â–¸ canRedo(): boolean
checks if there are newer configurations
boolean
true if current configuration is not the latest configuration
â–¸ canUndo(): boolean
checks if there are any changes on the item already happened
boolean
true if the current configuration is not the default configuration
â–¸ clearHistory(): void
clears history and make new empty history array
sets index on 0 that no undo and redo is possible
void
â–¸ getHistory(): string[]
string[]
array of all configuration strings
â–¸ push(configurationString): void
pushes new configurationString to history Array
is called when changes on the item happened
void
â–¸ redo(): string
loads the configurationString of the configuration which was set before undo function was called
only possible if undo function was called before
string
configurationString of configuration before undo was called or null if canRedo returns false
â–¸ undo(): string
loads the configurationString of the configuration which was set before
only possible if there are some changes on the current item
string
configurationString of lastAction or null if canUndo returns false
Last updated