Skip to content

cupertino-files / CellFormat

Type Alias: CellFormat ​

CellFormat = object & NumericFormatOptions | object & NumericFormatOptions | object & NumericFormatOptions | { dateSuppressed?: boolean; kind: "date"; pattern?: string; timeSuppressed?: boolean; } | { kind: "duration"; largestUnit?: number; smallestUnit?: number; style?: number; } | { kind: "text"; } | { falseString?: string; kind: "boolean"; trueString?: string; } | { kind: "checkbox"; } | { kind: "starRating"; } | { category: FormatCategory; formatType: number; kind: "custom"; } | { formatType: number; kind: "unknown"; }

Defined in: src/tst/formats.ts:134

Union Members ​

object & NumericFormatOptions


object & NumericFormatOptions


object & NumericFormatOptions


Type Literal ​

{ dateSuppressed?: boolean; kind: "date"; pattern?: string; timeSuppressed?: boolean; }

dateSuppressed? ​

optional dateSuppressed?: boolean

kind ​

kind: "date"

pattern? ​

optional pattern?: string

Unicode date pattern, e.g. "d MMM yyyy".

timeSuppressed? ​

optional timeSuppressed?: boolean


Type Literal ​

{ kind: "duration"; largestUnit?: number; smallestUnit?: number; style?: number; }


Type Literal ​

{ kind: "text"; }


Type Literal ​

{ falseString?: string; kind: "boolean"; trueString?: string; }


Type Literal ​

{ kind: "checkbox"; }

Draw the cell as its control rather than as a value.

A control cell needs two things: a spec saying what the widget is, and a format saying to draw it. TableModel.setCellControl writes both, so this is rarely constructed by hand.


Type Literal ​

{ kind: "starRating"; }


Type Literal ​

{ category: FormatCategory; formatType: number; kind: "custom"; }

category ​

category: FormatCategory

formatType ​

formatType: number

kind ​

kind: "custom"

A user-defined format. Its definition lives elsewhere in the document, identified by a UUID; the parameters are not modelled, so the whole archive is carried through untouched.


Type Literal ​

{ formatType: number; kind: "unknown"; }

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.