Sha256: b75ff749f2dee025af610a573240bf7a3c865da74dfe9a0907999a188d8d1b1a

Contents?: true

Size: 867 Bytes

Versions: 80

Compression:

Stored size: 867 Bytes

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, classname: "pb_textarea_kit_label"}) %>
  <% end %>
  <% if object.children %>
    <%= capture(&object.children) %>
    <% if object.error %>
      <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %>
    <% end %>
  <% else %>
    <%= text_area(
        :object,
        :method,
        :class => "#{object.classname}",
        :name => object.name,
        :placeholder => object.placeholder,
        :rows => object.rows,
        :value => object.value )%>
    <% if object.error %>
      <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
playbook_ui-5.0.1.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.18.1.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.18.1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.18.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.17.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.16.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.15.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.14.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.13.1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.13.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.12.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.11.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.11.0.pre.alpha3 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.11.0.pre.alpha.pre.2 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.10.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-4.9.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb