如何指定另一个 class 到隐藏的输入包装器?
How to specify another class to hidden input wrapper?
我将项目从 bootstrap v.3 更新到 bootstrap v.4。我更新 simple_form,现在,当我将 simple_form 输入标签指定为 'hidden':
= f.input :id, as: :hidden, input_html: { value: nil }
它使用包装器创建输入:
<div class="form-group hidden integer optional"></div>
但在当前版本中 bootstrap 隐藏 class 已被删除。
我该如何更改它,例如 'd-none' class?
你是这个吗?
= f.input :id, as: :hidden, input_html: { value: nil }, wrapper_html: { class: 'yourclass' }
我将项目从 bootstrap v.3 更新到 bootstrap v.4。我更新 simple_form,现在,当我将 simple_form 输入标签指定为 'hidden':
= f.input :id, as: :hidden, input_html: { value: nil }
它使用包装器创建输入:
<div class="form-group hidden integer optional"></div>
但在当前版本中 bootstrap 隐藏 class 已被删除。 我该如何更改它,例如 'd-none' class?
你是这个吗?
= f.input :id, as: :hidden, input_html: { value: nil }, wrapper_html: { class: 'yourclass' }