Module

x/lume/deps/cliffy.ts>Cell

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class Cell
import { Cell } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";

Cell representation.

Constructors

new
Cell(value: ICell)

Cell constructor.

Properties

protected
options: ICellOptions
readonly
length: number

Get cell length.

Methods

align(direction: Direction, override?): this

Align cell content.

border(enable: boolean, override?): this

Enable/disable cell border.

clone(value?: ICell): Cell

Clone cell with all options.

colSpan(span: number, override?): this

Set col span.

Get row span.

getBorder(): boolean

Check if cell has border.

getColSpan(): number

Get col span.

getRowSpan(): number

Get row span.

rowSpan(span: number, override?): this

Set row span.

setValue(value: ICell): this

Set cell value.

toString(): string

Get cell value.

Static Methods

from(value: ICell): Cell

Create a new cell. If value is a cell, the value and all options of the cell will be copied to the new cell.

import Cell
import { Cell } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";