Sha256: bea8dddca621df03d52f03013811e0302d5f696a41ae068ee69e9a25e291a120
Contents?: true
Size: 688 Bytes
Versions: 13
Compression:
Stored size: 688 Bytes
Contents
<% # name: headmin/forms/label # # ==== Required parameters # * +form+ - Form object # * +attribute+ - Name of the attribute of the form model # # ==== Optional parameters # * +text+ - Custom label to be used instead of the attribute # # ==== References # https://headmin.dev/docs/forms/label # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label # https://apidock.com/rails/ActionView/Helpers/FormHelper/label # # ==== Examples # Basic version # <%= render "headmin/forms/label", form: form, attribute: :image %#> %> <% label = Headmin::Form::LabelView.new(local_assigns) %> <%= form.label label.attribute, label.text, label.options %>
Version data entries
13 entries across 13 versions & 1 rubygems