Source for file SubmitButton.php
Documentation is available at SubmitButton.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Submittable button control.
- 17: *
- 20: *
- 23: */
- 25: {
- 26: /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated */
- 29: /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated */
- 37: /**
- 39: */
- 41: {
- 44: }
- 48: /**
- 49: * Sets 'pressed' indicator.
- 52: */
- 54: {
- 60: }
- 62: }
- 66: /**
- 67: * Tells if the form was submitted by this button.
- 69: */
- 71: {
- 73: }
- 77: /**
- 78: * Sets the validation scope. Clicking the button validates only the controls within the specified scope.
- 81: */
- 83: {
- 84: // TODO: implement groups
- 87: }
- 91: /**
- 92: * Gets the validation scope.
- 94: */
- 96: {
- 98: }
- 102: /**
- 103: * Fires click event.
- 105: */
- 107: {
- 109: }
- 113: /**
- 114: * Submitted validator: has been button pressed?
- 117: */
- 119: {
- 121: }
- 123: }