Skip to content

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

2 participants