# Class: default

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

# Implements

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

new default(creator)

# Parameters

Name Type
creator string

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:13 (opens new window)

# Properties

# _creator_

_creator_: string

# Implementation of

Context.creator

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:7 (opens new window)

# Methods

# canRedo

canRedo(): boolean

checks if there are newer configurations

# Returns

boolean

true if current configuration is not the latest configuration

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:88 (opens new window)


# 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

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:80 (opens new window)


# clearHistory

clearHistory(): void

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

# Returns

void

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:103 (opens new window)


# getHistory

getHistory(): string[]

# Returns

string[]

array of all configuration strings

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:95 (opens new window)


# push

push(configurationString): void

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

# Parameters

Name Type
configurationString string

# Returns

void

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:61 (opens new window)


# 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

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:41 (opens new window)


# 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

# Defined in

packages/configurator-core/src/utils/configurator-history.ts:22 (opens new window)