SheetXL - v0.3.20
    Preparing search index...

    Interface ITable

    A Table is an embedded table that allows for advanced capabilities.

    1. Filtering
    2. Dynamic Styling
    3. External data
    4. Structured formulas
    interface ITable {
        isIAnchored: true;
        isITable: true;
        addColumn(index: number, name?: string): Column;
        addListeners(listeners: IListeners, options?: IListener.Options): Remove;
        addRows(offset: number, count?: number): ITable;
        close(): void;
        convertToRange(maxCells?: number): ICellRange;
        delete(): void;
        deleteRowsAt(index: number, count?: number): ITable;
        getAnchorCoords(): IRange.Coords;
        getAnchorType(): IAnchored.Type;
        getColumnFilter(offset: number): IColumn;
        getColumns(): Column[];
        getDescription(): string;
        getFilter(): IAutoFilter;
        getFilter(): IAutoFilter;
        getHeaderRange(): ICellRange;
        getName(): string;
        getRange(): ICellRange;
        getShowFilterButton(): boolean;
        getShowHeaders(): boolean;
        getShowTotals(): boolean;
        getSnapshot(options?: ReferenceableClipboard.CopyOptions): ISnapshot;
        getSort(): IAutoSort;
        getStyle(): ITableStyle;
        getStyleAt(coords: IRange.CellCoords): IStyle;
        getStyleOptions(): StyleOptions;
        getTotalRange(): ICellRange;
        getUsedRange(): ICellRange;
        getVisibleCellCoords(coords: IRange.CellCoords): IRange.CellCoords;
        getVisibleRefRangeCoords(): IRange.Coords;
        insertFilter(): IAutoFilter;
        insertSort(): IAutoSort;
        isClosed(): boolean;
        isFirstColumnVisible(): boolean;
        isHeaderVisible(): boolean;
        isLastColumnVisible(): boolean;
        isProtected(): boolean;
        isTotalVisible(): boolean;
        resize(address: ICellRange.Address): ICellRange;
        select(options?: ICellRange.SelectOptions): Promise<ICellRange>;
        setDescription(description: string): ITable;
        setName(name: string): ITable;
        setShowFilterButton(showFilterButton: boolean): ITable;
        setShowHeaders(showHeaders: boolean): ITable;
        setShowTotals(showTotals: boolean): ITable;
        toJSON(): ITable.JSON;
        updateStyleOptions(options: StyleOptions): ITable;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    isIAnchored: true

    For runtime type checking.

    isITable: true

    For runtime type checking.

    Methods

    • Add a single column.

      Parameters

      • index: number
      • Optionalname: string

      Returns Column

      Not implemented To remove columns use the resize

    • Add a number of rows to a table

      Parameters

      • offset: number
      • Optionalcount: number

      Returns ITable

      Not implemented

    • Similar to delete but cleans resources and can't be undone.

      Returns void

    • Convert the existing table to a range. This will remove the table but preserve the original data and formatting.

      Parameters

      • OptionalmaxCells: number

        The maximum number of convert.

      Returns ICellRange

      This can be an expensive operation.

    • Deletes the anchored item.

      Returns void

    • Delete the rows from the table.

      Parameters

      • index: number

        The index to clear from

      • Optionalcount: number

      Returns ITable

      Not implemented

    • Returns an column for the given offset.

      Parameters

      • offset: number

      Returns IColumn

    • Returns the columns for this table.

      Returns Column[]

    • Returns string

    • Specifies if filter buttons are being shown.

      Returns boolean

    • Specifies if headers are being shown for the table.

      Returns boolean

    • Specifies if totals are being shown for the table.

      Returns boolean

    • Returns a cell style for the given coords.

      Parameters

      Returns IStyle

      This will return a CellStyle rendered with the table styling but not any other styling.

      • This is used by the preview.
    • Returns the bounds for the ref accounting for hidden headers.

      Returns IRange.Coords

      This is used for borders and drag areas that are based on visible edges. excluding hidden rows/columns (headers).

    • Enabled and returns an IAutoFilter. Only one AutoFilter per table is supported so this will return the same instance if it has already been created.

      Returns IAutoFilter

    • Only one sort per table is supported so this will. return the same instance if it has already been created.

      Returns IAutoSort

    • Returns if the model has been closed

      Returns boolean

    • Returns a flag indicating if the first column is visible due to hidden headers.

      Returns boolean

    • Returns a flag indicating if the header is visible due to hidden headers.

      Returns boolean

    • Returns a flag indicating if the first column is visible due to hidden headers.

      Returns boolean

    • If the anchor is unable to be modified.

      Returns boolean

    • Returns a flag indicating if the footer is visible due to hidden headers.

      Returns boolean

    • Resize the table.

      Parameters

      Returns ICellRange

      This will throw an exception if:

      1. The top row changes.
      2. If doesn't overlap with the original table.
      3. If overlaps with another non-overlapping object (e.g. another table or a merge).
    • This is the alternative text use for assistive technologies.

      Parameters

      • description: string

        A short human readable text. Default value null.

      Returns ITable

    • Set the name for a table object.

      Parameters

      • name: string

        A unique name.

      Returns ITable

    • Specifies if filter buttons are being shown.

      Parameters

      • showFilterButton: boolean

      Returns ITable

      If the autoFilter is not enabled this will have no effect.

    • Specifies if headers are being shown for the table.

      Parameters

      • showHeaders: boolean

      Returns ITable

    • Specifies if totals are being shown for the table.

      Parameters

      • showTotals: boolean

      Returns ITable

    • Updates the table StyleInfo.

      Parameters

      Returns ITable

      This will merge with the existing values.