Sign up (with export icon)

table/tablescroll/watchers

Api-module iconmodule

Functions

  • Chevron-right icon

    watchRootsScroll( view, onScroll ) → () => void
    internal

    Listens to scroll on every editing root and calls onScroll for scrolls happening anywhere inside them.

    Parameters

    view: EditingView
    onScroll: ( evt: EventInfo, domEvent: Event ) => void

    Returns

    () => void
  • Chevron-right icon

    watchRootsWidthResize( view, onResize ) → () => void
    internal

    Observes the DOM width of every editing root and calls onResize whenever any of them changes width. Height-only changes are ignored, since only a root's width can make a table overflow it.

    Parameters

    view: EditingView
    onResize: () => void

    Returns

    () => void
  • Chevron-right icon

    Creates a live collection of all table model elements present in the document and keeps it up to date as tables are inserted, moved, or removed.

    Parameters

    model: Model

    Returns

    Collection<ModelElement>