Sha256: 180773e9481dceac1261f5f94261efe89e0d9d3d5c83006cd13c6018b5454835
Contents?: true
Size: 1.24 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.2 | app/views/headmin/forms/_redactorx.html.erb |