Skip to content

Allows to use item_wrapper_class with procs#1131

Closed
A5308Y wants to merge 2 commits intoheartcombo:masterfrom
A5308Y:item_wrapper_class_with_proc
Closed

Allows to use item_wrapper_class with procs#1131
A5308Y wants to merge 2 commits intoheartcombo:masterfrom
A5308Y:item_wrapper_class_with_proc

Conversation

@A5308Y
Copy link
Copy Markdown

@A5308Y A5308Y commented Sep 9, 2014

I would like to have this functionality to select a specific check_box with JS.

I would've expected item_wrapper class to behave like label_method and value_method and was surprised it didn't. As each checkbox depends on an item, I expected to be able to derive a class from the item of a check_box as well, instead of assigning the same class to all check_boxes.

I would like to have this functionality to select a specific check_box with JS.

I would've expected item_wrapper class to behave like label_method and value_method and was surprised it didn't. As each checkbox depends on an item, I expected to be able to derive a class from the item of a check_box as well, instead of assigning the same class to all check_boxes.
@A5308Y
Copy link
Copy Markdown
Author

A5308Y commented Sep 9, 2014

The build is failing because Rubinius can't install certain gems, if I understand the travis output correctly. It seems to be a general issue with the travis setup as the build status of this PR: #1109 looks very similar.
If I'm the culprit I'd need some pointers on how to fix it...

@rafaelfranca
Copy link
Copy Markdown
Collaborator

Thank you for the pull request.

I'm not sure about this one. I don't think classes need to accept procs. In fact classes are not dynamic in any Rails or Simple Form helpers, so I'd not add support for this only in item_wrapper_class.

If you need a complex behaviour like this I believe it is better to write your own input.

Thank you again.

@A5308Y
Copy link
Copy Markdown
Author

A5308Y commented Nov 30, 2014

Ok. I can understand that. Thanks for looking at it and thanks for your suggestion of writing my own input. I'll look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants