Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMoveElementDelta

A delta to move an element from one parent element to another.

Hierarchy

Index

Properties

deltaType

deltaType: string

The type of the delta, which can be one of deltas.deltas.DeltaTypes, as a string. This type determines the rest of the JSON serialization:
"CREATE_ELEMENT" → ICreateElementDelta,
"UPDATE_PROPERTY_VALUE" → IUpdatePropertyValueDelta,
"MOVE_ELEMENT" → IMoveElementDelta,
"DELETE_ELEMENT" → IDeleteElementDelta,
"CREATE_UNIT" → ICreateUnitDelta.

elementId

elementId: string

Optional newIndex

newIndex: number

If the indicated new property is listy, newIndex is the index where the element-to-move will end up. If not set, the element-to-move will be added at the end.

newParentId

newParentId: string

The ID of the parent element to move the element indicated by elementId to.

newParentPropertyName

newParentPropertyName: string

The name of the property of the new parent element to put the element-to-move in/on.

unitId

unitId: string

The ID of the unit (containing an element or property value) to which the delta is to be applied.

Generated using TypeDoc