Its posible generate formular without table?

Notice: This thread is very old.
zdeno
Member | 13
+
0
-

hi,

Can I select if I wont generate form into table or div?

for example $form->addCheckboxList I liked it as a UL list or nothnig, only label's

Thanks for help

Šaman
Member | 2528
+
+1
-

Sure. You can use another renderer (your own, or eg. Bootstrap renderer), use manual rendering, or even just bind form to prepared html. See documentation

Last edited by Šaman (2016-05-02 18:36)

Darkling
Member | 35
+
+1
-

Hi, yes there is a way how to do it. Either you can use manual rendering (more here https://doc.nette.org/en/2.4/forms#…) or you can implement your own FormRenderer and then use $form->setRenderer(MyRenderer); (more here https://doc.nette.org/en/2.4/forms#…).

You can find some examples on web, for example Bootsrap renderer (https://github.com/…otstrap-form)

Hope it helps.

Last edited by Darkling (2016-05-02 18:40)

zdeno
Member | 13
+
0
-

Thank you both. It looks great!