2018-08-04 02:34:48 +00:00
|
|
|
# Bullet Points
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
To make a bullet point, simply make a paragraph into a bullet point:
|
|
|
|
|
2019-08-06 22:40:09 +00:00
|
|
|
```ts
|
|
|
|
const text = new docx.TextRun("Bullet points");
|
|
|
|
const paragraph = new docx.Paragraph(text).bullet();
|
2018-08-04 02:34:48 +00:00
|
|
|
|
2019-08-06 22:40:09 +00:00
|
|
|
const text2 = new docx.TextRun("Are awesome");
|
|
|
|
const paragraph2 = new docx.Paragraph(text2).bullet();
|
2018-08-04 02:34:48 +00:00
|
|
|
|
2019-08-06 22:40:09 +00:00
|
|
|
doc.add(paragraph);
|
|
|
|
doc.add(paragraph2);
|
2018-08-04 02:34:48 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### This will produce:
|
|
|
|
|
|
|
|
* Bullet points
|
|
|
|
* Are awesome
|