我有以下multicheckbox:如何使MultiCheckBox標籤變大或變強?
$this->add(array(
'type' => 'DoctrineModule\Form\Element\ObjectMultiCheckbox',
'name' => 'directPractice',
'options' => array(
'label' => 'A. Check all direct practice field education assignments',
**EDIT 1:**
'label_attributes' => array(
'class' => 'label-multicheckbox-group'
),
'object_manager' => $this->getObjectManager(),
'target_class' => 'OnlineFieldEvaluation\Entity\FieldEducationAssignments', //'YOUR ENTITY NAMESPACE'
'property' => 'directPractice', //'your db collumn name'
'value_options' => array(
'1' => 'Adults',
'2' => 'Individuals',
'3' => 'Information and Referral',
'4' => 'Families',
),
),
'attributes' => array(
'value' => '1', //set checked to '1'
'multiple' => true,
)
));
如何進行以下部分大膽? 使用label_attributes可使所有標籤變爲粗體,而我只需將多盒的主標籤變爲粗體。
'label' => 'A. Check all direct practice field education assignments',
編輯1:添加label_attributes到 「選項」
當我添加label_attributes爲@itrascastro建議,所有的標籤變得大膽,我想只有最上面的一個變得大膽:multicheckbox
我以前嘗試過。它使所有標籤變成粗體,我只希望最上面的一個變得粗體。我編輯了我的問題。 – vlr 2015-03-02 19:15:56