Created
February 24, 2013 20:12
-
-
Save jkuchar/5025394 to your computer and use it in GitHub Desktop.
Graphical submit button for Nette forms. Allows you to put HTML content inside button.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseForm extends AppForm { | |
/** | |
* Adds button used to submit form. | |
* @param string control name | |
* @param string caption | |
* @return AdvancedSubmitButton | |
*/ | |
public function addAdvSubmit($name, $caption, $icon = null) | |
{ | |
return $this[$name] = new AdvancedSubmitButton($caption, $icon); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment