Provided by: kaya_0.4.4-6ubuntu3_amd64 

NAME
HTMLDocument::addOption - Adds a labelled checkbox to a form.
SYNOPSIS
ElementTree addOption( ElementTree parent, String iname, SelectOption option )
ARGUMENTS
parent The parent element
iname The name of the checkbox. Remember that names starting with "kaya_" may be used by the Kaya
standard library and should not be used directly by applications.
option The value and label of the checkbox, and whether it is checked by default
DESCRIPTION
Adds a single labelled checkbox to a form. Labelled controls are wrapped in a division, and so the parent
may be the form itself.
opt = SelectOption("Confirm action","1",false);
void(addOption(form,"confirm",opt));
/*
<div><input type='checkbox' name='confirm' value='1' id='Kay1'>
<label for='Kay1'>Confirm action</label></div>
*/
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.SelectOption (3kaya)
HTMLDocument.addLabelledInput (3kaya)
HTMLDocument.addLabelledSelect (3kaya)
HTMLDocument.addLabelledTextarea (3kaya)
HTMLDocument.addOptionList (3kaya)
Kaya July 2013 HTMLDocument.addOption(3kaya)