Grammar
Format Operation Grammar
Definitions:
cellFormatter: FormattingDsl.(cell: C) -> CellAttributes?
rowColFormatter: FormattingDsl.(row: DataRow<T>, col: ColumnWithPath<C>) -> CellAttributes?
Notation:
[ .where{ filter: RowValueFilter} ]
[ .at(rowIndices: Collection<Int> | IntRange| varargInt)]
[ .notNull()]
| .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
| background(color)
| background(r: Short,g: Short,b: Short)
| linearBg(value: Number,from: Pair<Number, RgbColor>,to: Pair<Number, RgbColor>)
| 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
cellAttributes: CellAttributes
cellFormatter: FormattingDsl.(cell: C) -> CellAttributes?
cellAttributes: CellAttributes
color: RgbColor
rowColFormatter: FormattingDsl.(row: DataRow<T>, col: ColumnWithPath<C>) -> CellAttributes?