nette / forms

📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.

Home Page:https://doc.nette.org/forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

->setHtml('') for button is no longer available, please add it again

FTCP opened this issue · comments

commented
  • In previous versions it was possible to add/set html into the submit button, can you please add this again

  • For example:

$form->addButton('search')
                  ->getControlPrototype()
                  ->setName('button')
                  ->setHtml('<span class="glyphicon glyphicon-search"></span>');
  • This was possible in version 3.0.6 and earlier and it is not possible anymore, you can still ->setName('a') and it works, but not for button that can be used as a submit

Can you try dev version?