Closed
Description
I came across the ListItem element and I was wondering if it would not be better if the ListItem was inherited from the AbstractContainer class instead of the AbstractElement class ?
At the moment a structure like:
- Default font Strong again default
- Next list item
Seems not possible at the moment.
Considering the other elements, it would be, in my opinion, more logical if one could code the following:
$listItemObject = $section->addListItem();
$listItemObject->addText('Default font');
$listItemObject->addText('Strong', array('bold'=>true));
$listItemObject->addText('again default');
$listItemObject = $section->addListItem();
$listItemObject->addText('Next list item');