Sha256: b9c030fb594b5cc6ae9bba530df894b337bcd1152aab0ae3a3b9f8954080242e
Contents?: true
Size: 676 Bytes
Versions: 16
Compression:
Stored size: 676 Bytes
Contents
<% # name: formstrap/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 "formstrap/label", form: form, attribute: :image %#> %> <% label = Formstrap::LabelView.new(local_assigns) %> <%= form.label label.attribute, label.text, label.options %>
Version data entries
16 entries across 16 versions & 1 rubygems