Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Sets specific attributes (as class,title...) to "Zend\Form\Select" options #3792

Merged
merged 1 commit into from
Feb 19, 2013
Merged

Sets specific attributes (as class,title...) to "Zend\Form\Select" options #3792

merged 1 commit into from
Feb 19, 2013

Conversation

neilime
Copy link
Contributor

@neilime neilime commented Feb 15, 2013

Exemple :

$element = new SelectElement('foo');
$options = array(
    array(
        'label' => 'This is the label',
        'value' => 'value',
        'attributes' => array(
            'class' => 'test-class'
        ),
    ),
);
$element->setValueOptions($options);

@mwillbanks
Copy link
Contributor

Would this also apply to radio and multicheckbox?

@ghost ghost assigned weierophinney Feb 15, 2013
@neilime
Copy link
Contributor Author

neilime commented Feb 18, 2013

"Zend\Form\View\Helper\FormMultiCheckbox" already supports "attributes" option spec

weierophinney added a commit that referenced this pull request Feb 19, 2013
@weierophinney weierophinney merged commit ec7687b into zendframework:develop Feb 19, 2013
@neilime neilime deleted the options-attributes branch February 19, 2013 21:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants