Grammar

interface Grammar

Format Operation Grammar

    

(What is this notation?)

Definitions:

cellFormatter: FormattingDsl.(cell: C) -> CellAttributes?

    

rowColFormatter: FormattingDsl.(row: DataRow<T>, col: ColumnWithPath<C>) -> CellAttributes?

Notation:

format{ columns}

    [ .where{ filter: RowValueFilter} ]

    [ .at(rowIndices: Collection<Int> | IntRange| varargInt)]

    [ .notNull()]

    .with{ cellFormatter}

    | .notNull{ cellFormatter}

    | .perRowCol{ rowColFormatter}

    | .linearBg(from: Pair<Number, RgbColor>,to: Pair<Number, RgbColor>)

[ .format↺ ]

    

Formatting DSL Grammar

Definitions:

cellAttributes: CellAttributes

    

color: RgbColor

Notation:

- Returning CellAttributes:

cellAttributesandcellAttributes

| italic| bold| underline

| background(color)

| background(r: Short,g: Short,b: Short)

| linearBg(value: Number,from: Pair<Number, RgbColor>,to: Pair<Number, RgbColor>)

| textColor(color)

| textColor(r: Short,g: Short,b: Short)

| attr(name: String,value: String)

- Returning RgbColor:

black| white| green| red| blue| gray| darkGray| lightGray

| rgb(r: Short,g: Short,b: Short)

| linear(value: Number,from: Pair<Number, RgbColor>,to: Pair<Number, RgbColor>)

Types

Link copied to clipboard

cellAttributes: CellAttributes

Link copied to clipboard

cellFormatter: FormattingDsl.(cell: C) -> CellAttributes?

Link copied to clipboard
Link copied to clipboard
typealias RgbColorDef = Nothing

color: RgbColor

Link copied to clipboard

rowColFormatter: FormattingDsl.(row: DataRow<T>, col: ColumnWithPath<C>) -> CellAttributes?