Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude iterable attrvalue from displaying #344

Merged
merged 1 commit into from
Jan 10, 2015
Merged

Exclude iterable attrvalue from displaying #344

merged 1 commit into from
Jan 10, 2015

Conversation

b-b3rn4rd
Copy link
Contributor

I believe the commit is self explanatory, sometimes I need to set child attributes for choice field. For instance:

$builder->add('is_member_of_fund', 'choice', array(
            'expanded' => true,
            'label'    => 'Is trustee a member of the fund?',
            'choices'  => array(
                '1' => 'Yes',
                '0' => 'No'
            ),
            'attr' => array(
                'child_attr' => array(
                'data-bind' => "checked: {$options['knockoutJsNS']}.isMemberOfFund")
            ),
        ));

Regards, Bernard

@b-b3rn4rd b-b3rn4rd changed the title Exclude iterable attrs from displaying Exclude iterable attrvalue from displaying Jan 8, 2015
florianeckerstorfer pushed a commit that referenced this pull request Jan 10, 2015
Exclude iterable attrvalue from displaying
@florianeckerstorfer florianeckerstorfer merged commit feb69b4 into braincrafted:develop Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants