Expanze Nette\application\ui\Form
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- sodae
- Nette Evangelist | 250
Hi, If you can speak english switch to English forum: https://forum.nette.org/en/
And problem:
If you think callback:
$form['username']->addRule(callback('myRuleFunction'));
$form['username']->addRule(function(TextInput $control){...});
and regexp delimiter must be a slash for online validation ;)
- MartyIX
- Člen | 217
You don't need to extend the class.
Please have a look at the documentation here: https://doc.nette.org/en/forms#…