Sha256: b9d80b39c1a011b9940fa6af619993c8d435bd7401864eafb9b8a6b2cd0d5ba0

Contents?: true

Size: 1.54 KB

Versions: 192

Compression:

Stored size: 1.54 KB

Contents

<%= content_tag(:div,
    id: object.id,
    data: object.data,
    class: object.classname,
    **combined_html_options) do %>
  <% if object.label.present? %>
    <%= pb_rails("caption", props: {text: object.label, dark: object.dark}) %>
  <% end %>
  <% if content.present? %>
    <%= content %>
    <% if object.error %>
      <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %>
    <% end %>
  <% else %>
    <%= text_area(
        :object,
        :method,
        :class => "#{object.classname}",
        :max_characters => object.max_characters,
        :name => object.name,
        :onkeyup => object.onkeyup,
        :placeholder => object.placeholder,
        :rows => object.rows,
        :value => object.value) %>
    <% if object.error %>
      <% if object.character_count %>
        <%= pb_rails("flex", props: { spacing: "between", vertical: "center" }) do %>
          <%= pb_rails("flex/flex_item") do %>
             <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %>
          <% end %>
          <%= pb_rails("flex/flex_item") do %>
            <%= pb_rails("caption", props: { margin: "none", size: "xs", text: object.character_counter }) %>
          <% end %>
        <% end %>
      <% else %>
        <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %>
      <% end %>
    <% else %>
      <%= pb_rails("caption", props: { margin: "none", size: "xs", text: object.character_counter }) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

192 entries across 192 versions & 1 rubygems

Version Path
playbook_ui-14.3.1.pre.alpha.PBNTR515typeaheadmarginbottomredux3746 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.4.0.pre.rc.4 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.1.pre.alpha.dhhuynh2patch13743 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.1.pre.alpha.PLAY14973742 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.4.0.pre.rc.3 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.4.0.pre.rc.2 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.1 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.4.0.pre.rc.1 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.alpha.revert3654PBNTR479removeextraspacingfromradiochildren3734 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.4.0.pre.rc.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.12 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.11 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.10 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.9 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.8 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.7 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.6 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.5 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.4 app/pb_kits/playbook/pb_textarea/textarea.html.erb