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.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2023 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2010 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11642006 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1995 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1993 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11641992 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11641991 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0.pre.alpha.fonttest1972 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.play1141iconkitusinglibrary1956 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.16.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.play10841940 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.1132globalpropdatepickerspacing1929 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY10851907 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY11311893 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.reactselectbump581876 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY10831873 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0.pre.alpha.play1101betaicons1825 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0.pre.alpha.play1101betaicons1798 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.14.0.pre.alpha.play1120lintdatepicker1797 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.15.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb