Options
All
  • Public
  • Public/Protected
  • All
Menu

TableResize plugin, provides the ability to resize a table by drag-and-drop

Hierarchy

  • TableResize

Implements

Index

Constructors

constructor

  • new TableResize(onShowHelperElement?: (elementData: CreateElementData, helperType: "CellResizer" | "TableInserter" | "TableResizer" | "TableSelector", tableOrTd: HTMLTableElement | HTMLTableCellElement) => void, anchorContainerSelector?: string): TableResize
  • Construct a new instance of TableResize plugin

    Parameters

    • Optional onShowHelperElement: (elementData: CreateElementData, helperType: "CellResizer" | "TableInserter" | "TableResizer" | "TableSelector", tableOrTd: HTMLTableElement | HTMLTableCellElement) => void

      An optional callback to allow customize helper element of table resizing. To customize the helper element, add this callback and change the attributes of elementData then it will be picked up by TableResize code

        • (elementData: CreateElementData, helperType: "CellResizer" | "TableInserter" | "TableResizer" | "TableSelector", tableOrTd: HTMLTableElement | HTMLTableCellElement): void
        • Parameters

          • elementData: CreateElementData
          • helperType: "CellResizer" | "TableInserter" | "TableResizer" | "TableSelector"
          • tableOrTd: HTMLTableElement | HTMLTableCellElement

          Returns void

    • Optional anchorContainerSelector: string

      An optional selector string to specify the container to host the plugin. The container must not be affected by transform: scale(), otherwise the position calculation will be wrong. If not specified, the plugin will be inserted in document.body

    Returns TableResize

Methods

dispose

  • dispose(): void

getName

  • getName(): string

initialize

  • initialize(editor: IEditor): void

onPluginEvent

setTableEditor

  • setTableEditor(table: HTMLTableElement, event?: MouseEvent): void

Generated using TypeDoc