final receipt update
This commit is contained in:
@@ -624,6 +624,54 @@ Create tabular layouts with fixed-width columns.
|
||||
@endrow
|
||||
```
|
||||
|
||||
### Row Styles
|
||||
|
||||
Apply styles to an entire row by adding style names after `@row`:
|
||||
|
||||
```
|
||||
@row bold
|
||||
|width|content|width|content
|
||||
@endrow
|
||||
```
|
||||
|
||||
Multiple styles can be combined with commas:
|
||||
|
||||
```
|
||||
@row bold, big
|
||||
|width|content|width|content
|
||||
@endrow
|
||||
```
|
||||
|
||||
#### Available Row Styles
|
||||
|
||||
| Style | Description |
|
||||
|-------|-------------|
|
||||
| `bold` | Bold text for entire row |
|
||||
| `big` | Double-width and double-height |
|
||||
| `tall` | Double-height only |
|
||||
| `red` | Red color (if printer supports) |
|
||||
| `spacing:N` | Set line spacing to N |
|
||||
|
||||
#### Row Style Examples
|
||||
|
||||
```
|
||||
@row bold
|
||||
|30|{Name}|10,right|{Price:F2}
|
||||
@endrow
|
||||
```
|
||||
|
||||
```
|
||||
@row bold, big
|
||||
|15|TOTAL|9,right|{Total:F2}
|
||||
@endrow
|
||||
```
|
||||
|
||||
```
|
||||
@row red, bold
|
||||
|40|*** WARNING ***
|
||||
@endrow
|
||||
```
|
||||
|
||||
### Column Syntax
|
||||
|
||||
```
|
||||
@@ -870,6 +918,7 @@ Templates are assigned to receipt types and printer profiles in `assignments.jso
|
||||
| `@end` | End block |
|
||||
| `@foreach var in collection` | Start loop |
|
||||
| `@row` | Start row |
|
||||
| `@row style1, style2` | Start row with styles |
|
||||
| `@endrow` | End row |
|
||||
| `\|width\|content` | Column definition |
|
||||
| `\|width,align\|content` | Column with alignment |
|
||||
|
||||
Reference in New Issue
Block a user