Sha256: 8cd06ac2d0d5d11260ae77ed20b3ef5b68427784bf58cf3355a81cee94c6d1ba

Contents?: true

Size: 1.24 KB

Versions: 16

Compression:

Stored size: 1.24 KB

Contents

<%
  # headmin/forms/redactorx
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute of the form model
  # * +form+ - Form object
  #
  # ==== Optional parameters
  # * +append+ - Display as input group with text on the right-hand side
  # * +hint+ - Informative text to assist with data input. HTML markup is allowed.
  # * +hybrid+ - Enables hybrid mode when set to true (default = false)
  # * +label+ - Text to display inside label tag. Defaults to the attribute name. Set to false if you don"t want to show a label.
  # * +prepend+ - Display as input group with text on the left-hand side
  # * +redactor+ - Hash with all options you can pass to redactor JS config
  # * +wrapper+ - Hash with all options for the surrounding html tag
  #
  # ==== References
  # https://headmin.dev/docs/forms/redactorx
  # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
  # https://apidock.com/rails/ActionView/Helpers/FormHelper/text_area
  #
  # ==== Examples
  #   Basic version
  #   <%= form_with do |form| %#>
  #     <%= render "headmin/forms/redactorx", form: form, attribute: :text %#>
  #   <% end %#>

  redactor = Headmin::Form::RedactorxView.new(local_assigns)
%>

<%= render "headmin/forms/textarea", redactor.options %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/forms/_redactorx.html.erb
headmin-0.6.2 app/views/headmin/forms/_redactorx.html.erb
headmin-0.6.1 app/views/headmin/forms/_redactorx.html.erb
headmin-0.6.0 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.9 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.8 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.7 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.6 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.5 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.4 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.3 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.1 app/views/headmin/forms/_redactorx.html.erb
headmin-0.5.0 app/views/headmin/forms/_redactorx.html.erb
headmin-0.4.2 app/views/headmin/forms/_redactorx.html.erb
headmin-0.4.1 app/views/headmin/forms/_redactorx.html.erb
headmin-0.4.0 app/views/headmin/forms/_redactorx.html.erb