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