Is it possible to create a list with a dash '-' symbol?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowHello,
Yes, setting the format option in createListStyle you can set a custom symbol. For example:
$docx->createListStyle('mystyle', [
0 => [
'type' => 'bullet',
'format' => '-',
],
]);
// list items
$myList = array('item 1', 'item 2', 'item 3');
// insert the custom list into the Word document
$docx->addList($myList, 'mystyle');Regards.