1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

Added state as a property to Transform in the documentation (#526)

* Updates docs/reference/models/transform.md

Auto commit by GitBook Editor

* Updates docs/reference/models/transform.md

Auto commit by GitBook Editor
This commit is contained in:
Sunny Hirai 2016-12-24 23:54:54 -08:00 committed by Ian Storm Taylor
parent d56c0d8d95
commit 5cf11f7df4

View File

@ -11,6 +11,8 @@ All changes are performed through `Transform` objects, so that a history of chan
Transform methods can either operate on the [`Document`](./document.md), the [`Selection`](./selection.md), or both at once.
- [Properties](#properties)
- [`state`](#state)
- [Methods](#methods)
- [`apply`](#apply)
- [`call`](#call)
@ -88,6 +90,13 @@ Transform methods can either operate on the [`Document`](./document.md), the [`S
- [`undo`](#undo)
## Properties
### `state`
A [`State`](./state.md) with the transform's current operations applied. Each time you run a new transform function this property will be updated.
## Methods
### `apply`