Yii Framework Forum: Yii Booster, Chekboxrow Removing Label - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Booster, Chekboxrow Removing Label Rate Topic: -----

#1 User is offline   MPeli 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 27-May 12

Posted 24 March 2013 - 04:47 PM

Hi,

I am able to generate a checkbox using following line of code:

// bootstrap.widgets.TbActiveForm
$form->checkboxRow($model, 'setMenu');


I would like to remove the label. I tried something this:

$form->checkboxRow($model, 'setMenu', array('labelOptions' => array("label" => false));


However, the label did not disappear. How can I remove the label?

This
$form->textareaRow($model, 'setMenu[bulk]['.$mtid.']', array('labelOptions' => array("label" => false)));

works fine and the textarea is rendered without a label.

Thank you, Martin.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users