Sha256: 03f8202e920862bab59b9b6f661ae33831b48b58368fb7f9cad5ae2866937561
Contents?: true
Size: 688 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems