how to remove br / new line / wrapper / separator from radio lists?

filisko
Member | 7
+
0
-

Hi,

How could I Remove the “br” separator from radio lists?

The one located here at:
vendor/nette/forms/src/Forms/Controls/RadioList.php:46

foreach ($form->getControls() as $control) {
        if (in_array($type, ['radio'], true)) {
                    // some idea?
                    $control->getItemLabelPrototype()->addClass('pure-radio');
                }
        }

Last edited by filisko (2023-12-30 22:31)

filisko
Member | 7
+
0
-

thanks! was close, I used setHtml() by intuition to refer to what setName() does :))