@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class TableCell

    A table cell, addressed by its (table, row, column) position. Its text is read live from the model; span, alignment, borders, and content are set through the mutators.

    Hierarchy (View Summary)

    Index
    • get isValid(): boolean

      Whether this wrapper still refers to a live engine object.

      Returns boolean

    • set _index(value: number): void

      Parameters

      • value: number

      Returns void

    • get tableId(): number

      The id of the table this cell belongs to.

      Returns number

    • get row(): number

      The cell's row index.

      Returns number

    • get column(): number

      The cell's column index.

      Returns number

    • get text(): string

      The cell's text (its paragraphs joined by newlines), read live from the model.

      Returns string

    • Reference equality is the identity test — prefer a === b. This is retained only for the rare cross-realm case where two wrappers describe the same handle by value. Reads the raw index so comparing a stale wrapper never throws.

      Parameters

      • other: Handle<unknown> | null

      Returns boolean

    • A readable identity for logs and diagnostics, never [object Object].

      Returns string

    • Set the cell's span, vertical alignment, and shading.

      Parameters

      • properties: { gridSpan?: number; rowSpan?: number; verticalAlign?: number; shade?: number }

      Returns this

    • Set the vertical alignment of the cell's content.

      Parameters

      • verticalAlign: number

      Returns this

    • Set the horizontal alignment of the cell's paragraphs.

      Parameters

      • alignment: number

      Returns this

    • Set borders on the cell's edges.

      Parameters

      • edgeMask: number
      • color: number
      • width: number
      • style: number

      Returns this

    • Append a formatted run of text to the cell.

      Parameters

      • text: string
      • properties: { format?: number; fontSizePixels?: number; color?: number } = {}

      Returns this