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.19.0.pre.alpha.PBNTR207tabledivsupport2245 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.19.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.thor93bargraphoptions2219 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.thor93bargraphoptions2211 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.play1141iconkitusinglibrary2210 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PLAY12062203 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.powercentrainplaybookpt22201 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PLAY8672199 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2197 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarnreactrouterdom62212196 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarntypescripteslintparser56202194 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PLAY12062192 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2183 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2181 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2180 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.useexactnodejsversionghactions2179 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2178 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PLAY12062177 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.PBNTR191AdvancedTableFinalFixes2176 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-13.18.0.pre.alpha.dependabotnpmandyarnpowerhomeplaybookicons001alpha52175 app/pb_kits/playbook/pb_textarea/textarea.html.erb