Sha256: 9f429281d3663b1b73fe1f826cd4be142d1342d319da2b72f28ab7e550bd475e

Contents?: true

Size: 1.51 KB

Versions: 632

Compression:

Stored size: 1.51 KB

Contents

<%= content_tag(:div,
    id: object.id,
    data: object.data,
    class: object.classname) 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

632 entries across 632 versions & 1 rubygems

Version Path
playbook_ui-13.14.0.pre.alpha.PLAY1109bugdisplaypropblocksfontcolor1784 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0.pre.alpha.play1106filter1751 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0.pre.alpha.play1106filter1748 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.play10821727 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.play10821726 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.play10221678 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.PLAY1090csstokens1675 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0.pre.alpha.play900startratingasinput1657 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.13.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY880cardkithighlightzindex1655 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1627 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1626 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1624 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1623 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1612 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1611 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/pb_textarea/textarea.html.erb