Rename Layer

Renames a specific layer.

Syntax

store.dispatch({ type: "RENAME_LAYER", payload: {id, name} });

Parameters

id

The id of the layer to rename.

name

The new name of the target layer.

Examples

Renames layer 1 to “Background Layer”.

store.dispatch({
  type: "RENAME_LAYER",
  payload: {id: 1, name: "Background Layer"}
});