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|vararg Int) ]

     [ .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:

cellAttributes and cellAttributes

| 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>)