What I am trying to accomplish is to have checkbox labels display after checkbox input fields (to the right of them).
I am using these decorators now:
private $checkboxDecorators = array(
Label,
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'checkbox')),
'ViewHelper',
array(array('row' => 'HtmlTag'), array('tag' => 'li')),
);
I have tried switching the Label and ViewHelper decorators but that did nothing. Any suggestions?
$this->getElement('elementId')->addDecorator('Label', array('placement' => 'APPEND'))
the placement option can take APPEND or PREPEND as value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With