ElementTree addLocalControlInput(ElementTree parent, String label, b(a) fn, a state, String prefix="")
Arguments
parent: The element to add the button tolabel: The text for the buttonfn: The function to callstate: The state to passprefix: An optional prefix to the control variables. Different components may use different prefixes, allowing multiple Webapp::runHandler functions.
Usage
Create a submit button that calls a local function. This only works if added to a form created with addLocalForm.