Files
docx-js/docs/usage/bullet-points.md

22 lines
414 B
Markdown
Raw Normal View History

2018-08-04 03:28:27 +01:00
# Bullet Points
## Example
To make a bullet point, simply make a paragraph into a bullet point:
```ts
const text = new docx.TextRun("Bullet points");
const paragraph = new docx.Paragraph(text).bullet();
2018-08-04 03:28:27 +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