.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.addLocalControlInput" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::addLocalControlInput \- Add a form submit button .SH "SYNOPSIS" .B ElementTree addLocalControlInput( \fIElementTree parent, String label, b(a) fn, a state, String prefix=""\fP .B ")" .SH "ARGUMENTS" .PP .B "parent" The element to add the button to .PP .B "label" The text for the button .PP .B "fn" The function to call .PP .B "state" The state to pass .PP .B "prefix" An optional prefix to the control variables. Different components may use different prefixes, allowing multiple .B "Webapp.runHandler"(3kaya) functions. .SH "DESCRIPTION" .PP Create a submit button that calls a local function. This only works if added to a form created with .B "HTMLDocument.addLocalForm"(3kaya) .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH 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. .SH "RELATED" .PD 0 .PP .B "HTMLDocument.addLocalForm"(3kaya) .PP .B "HTMLDocument.addRemoteControlInput"(3kaya) .PD 0.4v