Kaya 0.5.2 reference for HTMLDocument::anonymousBlock

List of functions and data types in HTMLDocument

ElementTree anonymousBlock()

Usage

Make an anonymous division. This is useful for use with appendExisting and prependExisting.

ElementTree mkList([String] texts) {
    div = anonymousBlock();
    list = addList(div,Unordered,size(texts),texts);
    return list;
}
// can now do appendExisting(parent,mkList(texts));

Related

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