You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Really digging this gem so far, but I have a question:
# in my view:f.select:parent_id,options_for_parents(@page),{},hide_label: true
<!-- Generated HTML from the view: --><divclass="form-group"><labelclass="sr-only col-sm-2 control-label" for="page_parent_id">Hoofdniveau</label><divclass="col-sm-10"><selectclass="form-control" id="page_parent_id" name="page[parent_id]">
...
</select></div></div>
I was wondering if there is a way with the current codebase to circumvent the behaviour so that whenever I set hide_label: true, it will change the select parent's class to col-sm-12 instead of col-sm-10. I can do it with a few lines of JavaScript, but would prefer it in Ruby.
This is what I would like to end up with:
<divclass="form-group"><!-- The label may be removed in this case --><divclass="col-sm-12"><selectclass="form-control" id="page_parent_id" name="page[parent_id]">
...
</select></div></div>
The text was updated successfully, but these errors were encountered:
hi @davelens, currently there isn't a way to do this without hacking it.
I've thought about adding the ability to mix styles (both stacked and horizontal), which would allow you to use a stacked control for the parent_id and then hide the label so it effectively takes up the entire width.
Hello! Really digging this gem so far, but I have a question:
I was wondering if there is a way with the current codebase to circumvent the behaviour so that whenever I set
hide_label: true
, it will change the select parent's class tocol-sm-12
instead ofcol-sm-10
. I can do it with a few lines of JavaScript, but would prefer it in Ruby.This is what I would like to end up with:
The text was updated successfully, but these errors were encountered: