| @@ -561,8 +561,20 @@ | ||
| 561 | 561 | |
| 562 | 562 | /** @var StringAttr */ |
| 563 | 563 | public $backgroundColor; |
| 564 | 564 | |
| 565 | + /** @var StringAttr */ | |
| 566 | + public $headerBackgroundColor; | |
| 567 | + | |
| 568 | + /** @var StringAttr */ | |
| 569 | + public $footerBackgroundColor; | |
| 570 | + | |
| 571 | + /** @var StringAttr */ | |
| 572 | + public $evenRowBackgroundColor; | |
| 573 | + | |
| 574 | + /** @var StringAttr */ | |
| 575 | + public $oddRowBackgroundColor; | |
| 576 | + | |
| 565 | 577 | /** @var Sides */ |
| 566 | 578 | public $border; |
| 567 | 579 | |
| 568 | 580 | /** @var Corners */ |
| @@ -587,8 +599,12 @@ | ||
| 587 | 599 | $d['verticalAlign'], |
| 588 | 600 | ['top', 'middle', 'bottom'] |
| 589 | 601 | ); |
| 590 | 602 | $instance->backgroundColor = new StringAttr(getOrNull($data['backgroundColor']), $d['backgroundColor']); |
| 603 | + $instance->headerBackgroundColor = new StringAttr(getOrNull($data['headerBackgroundColor']), $d['headerBackgroundColor']); | |
| 604 | + $instance->footerBackgroundColor = new StringAttr(getOrNull($data['footerBackgroundColor']), $d['footerBackgroundColor']); | |
| 605 | + $instance->evenRowBackgroundColor = new StringAttr(getOrNull($data['evenRowBackgroundColor']), $d['evenRowBackgroundColor']); | |
| 606 | + $instance->oddRowBackgroundColor = new StringAttr(getOrNull($data['oddRowBackgroundColor']), $d['oddRowBackgroundColor']); | |
| 591 | 607 | $instance->border = Sides::from_array(getOrNull($data['border']), $d['border']); |
| 592 | 608 | $instance->borderRadius = Corners::from_array(getOrNull($data['borderRadius']), $d['borderRadius']); |
| 593 | 609 | $instance->cells = is_array(getOrNull($data['cells'])) ? $data['cells'] : $d['cells']; |
| 594 | 610 | |