LocalReferencePosition Interface
To use, import via @fluidframework/merge-tree/legacy
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface LocalReferencePosition extends ReferencePosition
Extends: ReferencePosition
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
callbacks | Alpha |
optional |
Partial<Record<"beforeSlide" | "afterSlide", (ref: LocalReferencePosition) => void>> | |
canSlideToEndpoint | Alpha |
optional , readonly |
boolean | Whether or not this reference position can slide onto one of the two special segments representing the position before or after the tree |
trackingCollection | Alpha |
readonly |
TrackingGroupCollection |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
addProperties(newProps) | Alpha |
void |
Property Details
callbacks
For more information about our API support guarantees, see here.
Signature
callbacks?: Partial<Record<"beforeSlide" | "afterSlide", (ref: LocalReferencePosition) => void>>;
Type: Partial<Record<"beforeSlide" | "afterSlide", (ref: LocalReferencePosition) => void>>
canSlideToEndpoint
Whether or not this reference position can slide onto one of the two special segments representing the position before or after the tree
For more information about our API support guarantees, see here.
Signature
readonly canSlideToEndpoint?: boolean;
Type: boolean
trackingCollection
For more information about our API support guarantees, see here.
Signature
readonly trackingCollection: TrackingGroupCollection;
Type: TrackingGroupCollection
Method Details
addProperties
For more information about our API support guarantees, see here.
Signature
addProperties(newProps: PropertySet): void;
Remarks
Note that merge-tree does not broadcast changes to other clients. It is up to the consumer to ensure broadcast happens if that is desired.
Parameters
Parameter | Type | Description |
---|---|---|
newProps | PropertySet | Properties to add to this reference. |