ElementTree addTextInput(ElementTree parent, TextInputType itype, String iname, String ivalue=createString(0), Int isize=0)
Arguments
parent: The parent elementitype: The type of text input to addiname: The name of the input. Remember that names starting with "kaya_" may be used by the Kaya standard library and should not be used directly by applications.ivalue: The initial value of the input. For text and password fields, this may be changed by the user in their web browser (someone attacking your application may of course change any value, regardless of the input type). This value is generally ignored by web browsers for file upload inputs. This value is optional, and defaults to the empty String.isize: Optionally, the display size of the input element. Browser rules for determining this size vary - it is an approximate number of characters, but only approximate. Obviously browsers ignore this field for hidden fields and checkbox and radio inputs, and usually for file upload inputs too.
Usage
Adds a text input to a form. In HTML, controls may not be added directly to a form, so you must add them to a block-level element such as fieldset within the form.