Kaya 0.5.2 reference for HTMLDocument::setClass

List of functions and data types in HTMLDocument

Void setClass(ElementTree element, String classname)

Arguments

Usage

Set the CSS class(es) of a HTML element. Multiple classes can be specified by separating them with a space. If a class is given which does not match the allowed characters for class names, a RequiresAttribute Exception will be thrown.

setClass(paragraph,"important");
setClass(link,"external recommended");

Related

kaya@kayalang.org | Last modified 13 July 2009 | Supported by Durham CompSoc | Powered by Kaya