ITPSubmitButton

Descendant of ITPPageElement, representing a submit button or a key selection button on the form. Replaces the standard input button by a button with jQuery-classes.

constructor

ITPSubmitButton

Trivial

public methods

submit()

Sends a "submitpressed" message with the submission value of the current button, to be picked up by the ITPForm node in the tree.

overrides

initScreenElements

Finds the input button as the only "input" child element of the container. Creates a new button element with the proper JQuery classes associated, binding the submit() method to its onclick event. If the button is a key selection button (indicated by the existence of the info.screenfields attribute) its label will be equal to info.screenfields, otherwise it will be equal to info.label. For key selection buttons an additional class is added, indicating whether the selection button has an odd or even rank (in order to allow for the old alternating representation).

other methods

-