Sha256: 0290a444e19f94e428cbd85067514f0358bdb08dba22ff072d8f784cdca74c11

Contents?: true

Size: 752 Bytes

Versions: 7

Compression:

Stored size: 752 Bytes

Contents

<%= bs5_toast_container do %>
  <%= bs5_toast(autohide: true, delay: 10_000, animation: false) do |t| %>
    <%= t.header do %>
      <svg
        class="bd-placeholder-img rounded me-2"
        width="20"
        height="20"
        xmlns="http://www.w3.org/2000/svg"
        aria-hidden="true"
        focusable="false"
      >
        <rect width="100%" height="100%" fill="#007aff"></rect>
      </svg>
      <strong class="me-auto">Bootstrap</strong>
      <small>11 mins ago</small>
    <% end %>
    <%= t.body do %>Hello, world! This is a toast message.<% end %>
  <% end %>

  <%= bs5_toast(close_button: false, autohide: true, delay: 11_000) do |t| %>
    <%= t.body do %>Hello, world! This is a toast message.<% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bs5-0.0.31 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.30 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.29 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.28 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.27 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.26 app/views/bs5/examples/toasts/js_options/snippet.html.erb
bs5-0.0.25 app/views/bs5/examples/toasts/js_options/snippet.html.erb