Sha256: be4fef2655bcbdfcf1ffd4254d764e6fe6d27bfdb7e5a02d8b495c7aef5acbcd

Contents?: true

Size: 1.78 KB

Versions: 121

Compression:

Stored size: 1.78 KB

Contents

<%= pb_rails("title", props: {size: 4, text: "Grow"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex",props: { gap:"sm" }) do %>
    <%= pb_rails("flex/flex_item", props: { grow: true }) do %>I'm growing<% end %>
    <%= pb_rails("flex/flex_item") do %>1<% end %>
    <%= pb_rails("flex/flex_item") do %>2<% end %>
    <%= pb_rails("flex/flex_item") do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Shrink"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {shrink: true}) do %> I'm shrinking<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Fixed Size"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {fixed_size: "250px"}) do %> I'm 250px<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Flex"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "3"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "2"}) do %>4<% end %>
  <% end %>
</div>

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
playbook_ui-10.14.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.13.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.13.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.12.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.11.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.10.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.9.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.8.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.7.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.7.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.6.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.5.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.4.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.3.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb