Skip to content

Instantly share code, notes, and snippets.

@cgmartin
Created September 9, 2012 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgmartin/3687761 to your computer and use it in GitHub Desktop.
Save cgmartin/3687761 to your computer and use it in GitHub Desktop.
MultiCheckbox example
$multicbElement
->setAttributes(array(
'id' => 'my-multicb',
'options' => array(
'Option 1' => 'option1',
'Option 2' => array(
'value' => 'option2',
'labelAttributes' => array(
'class' => 'checkbox inline zf-green'
),
'selected' => true, // <-- ****
),
'Option 3' => 'option3',
'Option 4' => array(
'value' => 'option4',
'disabled' => true,
'labelAttributes' => array(
'class' => 'checkbox inline disabled'
),
),
'Option 5' => 'option5',
),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment