-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add new multi_select_input tag #1518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a new method? What if we allowed specifying multiple on select_input
and we rename the method for options that you made just to be an override?
It doesn't necessarily need a new method. I was more thinking that since multi selects look and work a bit different, we could treat it like a separate tag. It makes it easier to grep for, and stand out in the code: select_input(op.thing, multiple: true, size: 5, class: "select-box") do
end
multi_select_input(op.thing, size: 5, class: "select-box") do
end I do like the idea of just doing an override on the |
Yeah, for some reason I kind of like the separate methods. Single and multi selects look and behave differently enough that it feels similar to the separation of email and text input methods we already have. |
Just pushed up #1523 which would accompany this. I'd like to get that one merged in first and then I'll come back to this one. |
@jwoertink you've got |
nope, not yet. After we figure out #1523 I'll come back to this. I want to still try the |
…sure an Array is passed in
Purpose
Fixes #777
Description
This adds a new select tag method
multi_select_input
which allows you to use Arrays and pass over multiple values with a select.Notes
There is a caveat here in that Avram Operations do not support passing in Arrays from params just yet. If you were to use this as is right now, you'd have to update your actions a bit.
Checklist
crystal tool format spec src
./script/setup
./script/test