Trevixal API
    Preparing search index...

    Interface TableUICommands

    The command bundle @trevixal/ui's createEditorUI expects, so the UI package can drive tables without importing this one:

    createEditorUI(editor, { container, tableCommands: tableUICommands() })
    
    interface TableUICommands {
        addColumnAfter: Command;
        addColumnBefore: Command;
        addRowAfter: Command;
        addRowBefore: Command;
        clearSizing: Command;
        convertTableToText: Command;
        convertTextToTable: Command;
        csvAtSelection: (state: EditorState) => string | null;
        deleteColumn: Command;
        deleteRow: Command;
        deleteTable: Command;
        distributeColumns: Command;
        insertTable: (rows: number, cols: number) => Command;
        insertTableFromCSV: (csv: string) => Command;
        mergeCells: Command;
        moveColumnLeft: Command;
        moveColumnRight: Command;
        moveRowDown: Command;
        moveRowUp: Command;
        setCellAlign: (align: CellAlign | null) => Command;
        setCellBackground: (color: string | null) => Command;
        setColumnWidth: (width: string | null) => Command;
        setRowHeight: (height: string | null) => Command;
        setTableBorderColor: (color: string | null) => Command;
        setTableBorders: (borders: TableBorders | null) => Command;
        setTableWidth: (width: string | null) => Command;
        sortAscending: Command;
        sortDescending: Command;
        splitCell: Command;
        swapCellDown: Command;
        swapCellLeft: Command;
        swapCellRight: Command;
        swapCellUp: Command;
        toggleHeaderRow: Command;
    }
    Index
    addColumnAfter: Command
    addColumnBefore: Command
    addRowAfter: Command
    addRowBefore: Command
    clearSizing: Command
    convertTableToText: Command
    convertTextToTable: Command
    csvAtSelection: (state: EditorState) => string | null

    CSV for the table at the selection, or null outside one, not a command, a reader.

    deleteColumn: Command
    deleteRow: Command
    deleteTable: Command
    distributeColumns: Command
    insertTable: (rows: number, cols: number) => Command
    insertTableFromCSV: (csv: string) => Command
    mergeCells: Command
    moveColumnLeft: Command
    moveColumnRight: Command
    moveRowDown: Command
    moveRowUp: Command
    setCellAlign: (align: CellAlign | null) => Command
    setCellBackground: (color: string | null) => Command
    setColumnWidth: (width: string | null) => Command
    setRowHeight: (height: string | null) => Command
    setTableBorderColor: (color: string | null) => Command
    setTableBorders: (borders: TableBorders | null) => Command
    setTableWidth: (width: string | null) => Command
    sortAscending: Command

    Sort the body rows by the caret's column.

    sortDescending: Command
    splitCell: Command
    swapCellDown: Command
    swapCellLeft: Command
    swapCellRight: Command
    swapCellUp: Command
    toggleHeaderRow: Command