HTMLDocument.pushListItem(3kaya)
NAME
HTMLDocument::pushListItem - Append a list item
SYNOPSIS
ElementTree pushListItem( ElementTree list, String initialcontents=cre- ateString(0) )
ARGUMENTS
list The list to append to
initialcontents Optionally, the initial contents of the list item
DESCRIPTION
- Append a list item to a list. If the list given is not actually a list,
an HTMLDocument.InvalidNesting (3kaya) Exception is thrown. This is
sometimes a more convenient way to build up lists than using an initial
content array on addList , especially if the final size of the list is
variable.
- list = addList(parent,Ordered,0);
while (text = getNextText(source)) { - pushListItem(list,text);
- }
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others
(kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
The Kaya standard library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) as published by the Free
Software Foundation.
RELATED
- HTMLDocument.addList (3kaya) HTMLDocument.addListItem (3kaya) HTMLDocument.getListItem (3kaya)