Ace API Reference
    Preparing search index...

    Interface AnchorEvents

    interface AnchorEvents {
        change: (
            e: { old: Ace.Point; value: Ace.Point },
            emitter: Anchor,
        ) => void;
    }
    Index

    Properties

    Properties

    change: (e: { old: Ace.Point; value: Ace.Point }, emitter: Anchor) => void

    Fires whenever the anchor position changes. Both of these objects have a row and column property corresponding to the position. Events that can trigger this function include [[Anchor.setPosition setPosition()]].

    Type declaration

      • (e: { old: Ace.Point; value: Ace.Point }, emitter: Anchor): void
      • Parameters

        • e: { old: Ace.Point; value: Ace.Point }

          An object containing information about the anchor position. It has two properties:

          • old: An object describing the old Anchor position
          • value: An object describing the new Anchor position
        • emitter: Anchor

        Returns void