-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
I saw this comment in a past PR: #29 (comment) about adding collections without the block support first. I read through a number of issues in https://github.com/github/view_component related to form fields and it seems like it's not a simple problem to solve.
I'm curious whether there is a plan to support these fields when used with a block like so:
<%= f.collection_check_boxes :ids, MyModel.all, :id, :name do |b| %>
<%= b.check_box %>
<%= b.label %>
<% end %>
Right now the issue is that b is the component object rather than a builder object. I'm not sure what the right approach would be in a view component form builder.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers