2018-08-04 02:34:48 +00:00
|
|
|
# Bullet Points
|
|
|
|
|
2021-03-14 18:21:51 +00:00
|
|
|
!> Bullet Points requires an understanding of [Paragraphs](usage/paragraph.md).
|
2018-08-04 02:34:48 +00:00
|
|
|
## Example
|
|
|
|
|
|
|
|
To make a bullet point, simply make a paragraph into a bullet point:
|
|
|
|
|
2019-08-06 22:40:09 +00:00
|
|
|
```ts
|
2021-03-20 00:01:19 +00:00
|
|
|
const doc = new Document({
|
|
|
|
sections: [{
|
|
|
|
children: [
|
|
|
|
new Paragraph({
|
|
|
|
text: "Bullet points",
|
|
|
|
bullet: {
|
2021-12-18 15:55:35 +00:00
|
|
|
level: 0 // How deep you want the bullet to be. Maximum level is 9
|
2021-05-18 17:29:21 +00:00
|
|
|
}
|
2021-03-20 00:01:19 +00:00
|
|
|
}),
|
|
|
|
new Paragraph({
|
|
|
|
text: "Are awesome",
|
|
|
|
bullet: {
|
2021-05-18 17:29:21 +00:00
|
|
|
level: 0
|
|
|
|
}
|
2021-03-20 00:01:19 +00:00
|
|
|
})
|
|
|
|
],
|
|
|
|
}];
|
2019-08-21 23:37:11 +00:00
|
|
|
});
|
2018-08-04 02:34:48 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### This will produce:
|
|
|
|
|
2019-08-21 23:37:11 +00:00
|
|
|
- Bullet points
|
|
|
|
- Are awesome
|