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.2.0.pre.alpha.fixphonenumberinputflag3631 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063628 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063626 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063624 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.play1432playgroundsanitation3622 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063621 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063620 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063619 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.2.0.pre.alpha.PLAY15063618 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.3.0.pre.rc.0 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063617 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063616 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063615 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063614 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063613 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063612 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PLAY15063610 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PBNTR417addcolorsupdatedefaultcolor3608 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PBNTR449rtepreviewerrails3605 app/pb_kits/playbook/pb_textarea/textarea.html.erb
playbook_ui-14.1.0.pre.alpha.PA1477timestampkit3601 app/pb_kits/playbook/pb_textarea/textarea.html.erb