Retrieve a list item
ElementTree getListItem( ElementTree list, Int index )
list The list to search
index The index to retrieve (starting at zero)
Gets the list item within a list at the specified index. If the index given is not in the list, an Array.OutOfBounds (3kaya) Exception will be thrown. If the list given is not actually a list, a HTMLDocument.RequiresElement (3kaya) Exception is thrown.
list = addList(parent,Unordered,10); for i in [0..9] {
item = getListItem(list,i); addString(item,"This is item "+(i+1));
}
Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
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.
HTMLDocument.addList (3kaya)
HTMLDocument.addListItem (3kaya)
HTMLDocument.pushListItem (3kaya)