HTMLDocument.addList(3kaya)
NAME
HTMLDocument::addList - Add a list
SYNOPSIS
ElementTree addList( ElementTree parent, ListType ltype, Int initial- size, [String] initialcontents=createArray(1) )
ARGUMENTS
parent The parent element
ltype Is the list Unordered or Ordered
initialsize The initial number of list elements to have
initialcontents Optionally, the initial text content for some or all of
the list elements. If this list is shorter than initialsize , then only
the first list items will be populated. If it is longer, then the extra
list items will be ignored.
DESCRIPTION
- Add a list to the parent element. Lists may only directly contain list
items.
- steps = ["Catch flamingo","Place flamingo in pan","Boil for 3 hours"];
list = addList(parent,Ordered,3,steps);
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.ListType (3kaya) HTMLDocument.addListItem (3kaya) HTMLDocument.getListItem (3kaya) HTMLDocument.pushListItem (3kaya)