Mutation

A record of a single change in an Item .

A new mutation is created to record each attribute set, body text change, and child item update. Use Outline::onDidChange to receive this mutation record so you can track what changes as an outline is edited.

Constants

.ATTRIBUTE_CHANGED

ATTRIBUTE_CHANGED Mutation type constant.

.BODY_CHANGED

BODY_CHANGED Mutation type constant.

.CHILDREN_CHANGED

CHILDREN_CHANGED Mutation type constant.

Attribute

::target

Read-only Item target of the mutation.

::type

Read-only type of change. Mutation.ATTRIBUTE_CHANGED , Mutation.BODY_CHANGED , or Mutation.CHILDREN_CHANGED .

::attributeName

Read-only name of changed attribute in the target Item , or null.

::attributeOldValue

Read-only previous value of changed attribute in the target Item , or null.

::insertedTextLocation

Read-only value of the body text location where the insert started in the target Item , or null.

::insertedTextLength

Read-only value of length of the inserted body text in the target Item , or null.

::replacedText

Read-only AttributedString of replaced body text in the target Item , or null.

::addedItems

Read-only Array of child Item s added to the target.

::removedItems

Read-only Array of child Item s removed from the target.

::previousSibling

Read-only previous sibling Item of the added or removed Items, or null.

::nextSibling

Read-only next sibling Item of the added or removed Items, or null.

results matching ""

    No results matching ""