Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit 9bdb027

Browse files
committed
Update documentation with number format
1 parent 76017f0 commit 9bdb027

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/_pages/documentation.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,19 @@ $reader->setShouldPreserveEmptyRows(true);
116116

117117
For fonts and alignments, {{ site.spout_html }} does not support all the possible formatting options yet. But you can find the most important ones:
118118

119-
| Category | Property | API
120-
|:----------|:---------------|:--------------------------------------
121-
| Font | Bold | `StyleBuilder::setFontBold()`
122-
| | Italic | `StyleBuilder::setFontItalic()`
123-
| | Underline | `StyleBuilder::setFontUnderline()`
124-
| | Strikethrough | `StyleBuilder::setFontStrikethrough()`
125-
| | Font name | `StyleBuilder::setFontName('Arial')`
126-
| | Font size | `StyleBuilder::setFontSize(14)`
127-
| | Font color | `StyleBuilder::setFontColor(Color::BLUE)`<br>`StyleBuilder::setFontColor(Color::rgb(0, 128, 255))`
128-
| Alignment | Cell alignment | `StyleBuilder::setCellAlignment(CellAlignment::CENTER)`
129-
| | Wrap text | `StyleBuilder::setShouldWrapText(true)`
130-
119+
| Category | Property | API
120+
|:---------------------|:---------------|:--------------------------------------
121+
| Font | Bold | `StyleBuilder::setFontBold()`
122+
| | Italic | `StyleBuilder::setFontItalic()`
123+
| | Underline | `StyleBuilder::setFontUnderline()`
124+
| | Strikethrough | `StyleBuilder::setFontStrikethrough()`
125+
| | Font name | `StyleBuilder::setFontName('Arial')`
126+
| | Font size | `StyleBuilder::setFontSize(14)`
127+
| | Font color | `StyleBuilder::setFontColor(Color::BLUE)`<br>`StyleBuilder::setFontColor(Color::rgb(0, 128, 255))`
128+
| Alignment | Cell alignment | `StyleBuilder::setCellAlignment(CellAlignment::CENTER)`
129+
| | Wrap text | `StyleBuilder::setShouldWrapText(true)`
130+
| Format _(XLSX only)_ | Number format | `StyleBuilder::setFormat('0.000')`
131+
| | Date format | `StyleBuilder::setFormat('m/d/yy h:mm')`
131132

132133
### Styling rows
133134

0 commit comments

Comments
 (0)