Skip to content

ReorderChildMutation

Reorder a child

Extends

Constructors

new ReorderChildMutation()

new ReorderChildMutation(parent, obj, position): ReorderChildMutation

Parameters

parent: Obj

obj: Obj

position: number

Returns

ReorderChildMutation

Overrides

Mutation.constructor

Source

core/transaction.ts:261

Properties

newPosition

newPosition: number

Source

core/transaction.ts:258


obj

obj: Obj

Source

core/transaction.ts:257


oldPosition

oldPosition: number

Source

core/transaction.ts:259


parent

parent: Obj

Source

core/transaction.ts:256


type

type: string

Inherited from

Mutation.type

Source

core/transaction.ts:18

Methods

apply()

apply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.apply

Source

core/transaction.ts:273


toJSON()

toJSON(): object

Returns

object

newPosition

newPosition: number

obj

obj: Obj

oldPosition

oldPosition: number

op

op: string

parentId

parentId: string

Overrides

Mutation.toJSON

Source

core/transaction.ts:293


unapply()

unapply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.unapply

Source

core/transaction.ts:283