-
Notifications
You must be signed in to change notification settings - Fork 5
Create List
Philipp Hirsch edited this page Feb 9, 2014
·
3 revisions
Lists can be created with the following shortcuts.
ODF_Text::createList($child, $attributes);
ODF_Text::createListHeader($child, $attributes);
ODF_Text::createListItem($child, $attributes);To create a real list you have to create a listelement first:
$list = ODF_Text::createList();Now your list needs some items to be really useful.
$entry = ODF_Text::createListItem("My List Item");
$list->appendChild($list);The list can now be added to your content-body.
In the same way you can create a listheader.