Kaya 0.5.3 reference for HTMLDocument::addListItem

List of functions and data types in HTMLDocument

ElementTree addListItem(ElementTree list, Int index, String initialcontents=createString(0))

Arguments

Usage

Add a list item to a list at the specified index. If the list given is not actually a list, an InvalidNesting Exception is thrown.

if (extradetails) {
    addListItem(instructions,5,"Check that all leads are attached.");    
    addListItem(instructions,12,"Check that the batteries are charged.");    
}

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya