2018-08-04 03:28:27 +01:00
|
|
|
# Bullet Points
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
To make a bullet point, simply make a paragraph into a bullet point:
|
|
|
|
|
2019-08-06 17:51:13 +01:00
|
|
|
```ts
|
|
|
|
const text = new docx.TextRun("Bullet points");
|
|
|
|
const paragraph = new docx.Paragraph(text).bullet();
|
2018-08-04 03:28:27 +01:00
|
|
|
|
2019-08-06 17:51:13 +01:00
|
|
|
const text2 = new docx.TextRun("Are awesome");
|
|
|
|
const paragraph2 = new docx.Paragraph(text2).bullet();
|
2018-08-04 03:28:27 +01:00
|
|
|
|
2019-06-25 23:17:56 +01:00
|
|
|
doc.add(paragraph);
|
|
|
|
doc.add(paragraph2);
|
2018-08-04 03:28:27 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
### This will produce:
|
|
|
|
|
|
|
|
* Bullet points
|
|
|
|
* Are awesome
|