我有一个
Simple Form
<%= f.input :remove_default_template,
label: 'Advanced Option',
inline_label: "Remove Header, Footer, and Department Name"
%>
我需要给内联标签添加样式。我该怎么做?我希望
要工作:
<%= f.input :remove_default_template,
label: 'Advanced Option',
inline_label: "Remove Header, Footer, and Department Name",
inline_label_html:
input_html: {class: "input_class"}, # THIS works
wrapper_html: {class: "wrapper_class"}, # THIS works
label_html: {class: "label_class"}, # THIS works
inline_label_html: {class: "inline_label_class"} # THIS DOES NOT WORK!!!
%>
inline_label_html: {class: "inline_label_class"}
既然Simple Form似乎不支持这个选项(至少在我期望的名称下,或者在我能找到的任何其他名称下),那么我如何实现相同的目标呢?