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-6.0.1.pre.alpha6 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.1.pre.alpha5 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.1.pre.alpha4 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.1.pre.alpha3 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.1.pre.alpha2 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-6.0.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.0 app/pb_kits/playbook/pb_textarea/_textarea.html.erb
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_textarea/_textarea.html.erb