8000 Update from-view.md (#222) · anthony-dee/laravel-excel-docs@230c13c · GitHub
[go: up one dir, main page]

Skip to content

Commit 230c13c

Browse files
authored
Update from-view.md (SpartnerNL#222)
Add more detail on HTML attribute and style inline.
1 parent c439661 commit 230c13c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

3.1/exports/from-view.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,34 @@ It will convert an HTML table into an Excel spreadsheet. For example; `invoices.
4545
</table>
4646
```
4747

48+
Attribute in tag html support:
49+
50+
|Attributes|Description
51+
|-----------|-------------
52+
|bgcolor| set background color to cell `<td>`
53+
|colspan| merge column cell
54+
|rowspan| merge row cell
55+
|width| set width to cell
56+
|height| set height to cell
57+
|data-format| set format `PhpOffice\PhpSpreadsheet\Style::NumberFormat`
58+
|data-type| set type `PhpOffice\PhpSpreadsheet\Cell`
59+
|align| set text align to cell
60+
|valign| set vertical align to cell
61+
|style| set style to cell
62+
63+
Style inline support
64+
- background
65+
- background-color
66+
- color
67+
- border|border-top|border-bottom|border-left|border-right
68+
- font-size|font-weight|font-sytle|font-family
69+
- text-decoration: underline|line-through
70+
- text-align
71+
- vertical-align
72+
- with|height
73+
- word-wrap
74+
- text-indent
75+
4876
You can download the export in your controller:
4977

5078
```php

0 commit comments

Comments
 (0)
0