Create a new LoroCounter.
Readonly
idThe container id of this handler.
Readonly
valueGet the value of the counter.
Decrement the counter by the given value.
Get the attached container associated with this.
Returns an attached Container
that equals to this or created by this, otherwise undefined
.
Get the value of the counter.
Increment the counter by the given value.
Whether the container is attached to a docuemnt.
If it's detached, the operations on the container will not be persisted.
"Counter"
Get the parent container of the counter container.
undefined
.Subscribe to the changes of the counter.
The handler of a counter container.