Default TableModel

Implements

Constructors

Accessors

  • get displayName(): string
  • A string representing the name of the table. This is the name that shall be used in formula references, and displayed in the UI to the spreadsheet user. This name shall not have any spaces in it, and it must be unique amongst all other displayNames and definedNames in the workbook. The character lengths and restrictions are the same as for definedNames.

    See SpreadsheetML Reference - Workbook definedNames section for details.

    Returns string

  • set displayName(newValue): void
  • A string representing the name of the table. This is the name that shall be used in formula references, and displayed in the UI to the spreadsheet user. This name shall not have any spaces in it, and it must be unique amongst all other displayNames and definedNames in the workbook. The character lengths and restrictions are the same as for definedNames.

    See SpreadsheetML Reference - Workbook definedNames section for details.

    Parameters

    • newValue: string

    Returns void

  • get headerRowCount(): number
  • An integer representing the number of header rows showing at the top of the table. 0 means that the header row is not shown

    Returns number

    Default Value

    1
    
  • set headerRowCount(newValue): void
  • An integer representing the number of header rows showing at the top of the table. 0 means that the header row is not shown

    Parameters

    • newValue: number

    Returns void

    Default Value

    1
    
  • get name(): string
  • The unique name of the table

    Returns string

  • set name(newValue): void
  • The unique name of the table

    Parameters

    • newValue: string

    Returns void

  • get ref(): CellRangeCoords
  • The range on the relevant sheet that the table occupies expressed using A1 style referencing. The reference shall include the totals row if it is shown

    Returns CellRangeCoords

  • set ref(newValue): void
  • The range on the relevant sheet that the table occupies expressed using A1 style referencing. The reference shall include the totals row if it is shown

    Parameters

    Returns void

  • get styleInfo(): TableStyleInfo
  • If not specified than the default table style is used If the style name isn't valid then uses a 'none' style.

    Returns TableStyleInfo

  • set styleInfo(newValue): void
  • If not specified than the default table style is used If the style name isn't valid then uses a 'none' style.

    Parameters

    Returns void

  • get totalsRowCount(): number
  • An integer representing the number of totals rows that shall be shown at the bottom of the table.

    Returns number

    Default Value

    0
    
  • set totalsRowCount(newValue): void
  • An integer representing the number of totals rows that shall be shown at the bottom of the table.

    Parameters

    • newValue: number

    Returns void

    Default Value

    0
    

Methods

  • Free all resources associated with the sheet and mark as read-only.

    Returns void

    Remarks

    This is called by workbooks when the sheet is closed

    See

    addListener for closeEvent

  • Parameters

    • offset: number
    • count: number

    Returns void

  • Parameters

    • _offset: number
    • count: number

    Returns void

  • Returns true if the table has been closed.

    Returns boolean

  • Returns void

  • Returns void

  • Parameters

    • offset: number
    • count: number

    Returns void

  • Parameters

    • _offset: number
    • count: number

    Returns void

  • Saves the current state of the table to a JSON object.

    Returns Partial<{
        autoFilter?: string | AutoFilter | Partial<{
            filterColumns?: any;
            ref?: string;
            sortState?: any;
        }>;
        columns?: string | TableColumn[] | (string | TableColumn | Partial<{
            name: string;
        }>)[];
        displayName?: string;
        headerRowCount?: string | number;
        isModelTable: string | true;
        name: string;
        ref: string | CellRangeCoords | Partial<{
            colEnd: string | number;
            colStart: string | number;
            rowEnd: string | number;
            rowStart: string | number;
        }>;
        sortState?: any;
        styleInfo?: string | TableStyleInfo | Partial<{
            name: string;
            showColumnStripes?: string | Partial<boolean>;
            showFirstColumn?: string | Partial<boolean>;
            showLastColumn?: string | Partial<boolean>;
            showRowStripes?: string | Partial<boolean>;
        }>;
        totalsRowCount?: string | number;
        addListener: any;
        close: any;
        getTableStyle: any;
        insertColumns: any;
        insertRows: any;
        isClosed: any;
        removeColumns: any;
        removeRows: any;
        toJSON: any;
        update: any;
    }>