Sha256: 012999da9d5d4575e3a0bf3138d50858ca2306cb19c3e9bf816f3c6ecce2bb30

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

<section id="notify">
  <div class="page-header">
    <h1>Notify
      <small>bootstrap notify helper</small>
    </h1>
  </div>

  <p>Notify helpers uses <a href="http://pinesframework.org/pnotify" target="_blank">pnotify</a> to represent various notifications.</p>
  <p>PNotify is a pure js plugin, this gem is just for server generated javascript with simple configurations. </p>

  <h3>Notify</h3>

  <div class="bs-docs-example">
    <%= btn('Warning', js: notify_js('Warning', 'I am a warning.')) %>
    <%= btn('Info', js: notify_js('Info', 'I am an info.', type: 'info')) %>
    <%= btn('Success', js: notify_js('Success', 'I am a success.', type: 'success')) %>
    <%= btn('Error', js: notify_js('Error', 'I am an error.', type: 'error'), type: 'button') %>
  </div>


<pre class="prettyprint linenums lang-js">
&lt;%= btn('Warning', js: notify_js('Warning', 'I am a warning.')) %&gt;
&lt;%= btn('Info', js: notify_js('Info', 'I am an info.', type: 'info')) %&gt;
&lt;%= btn('Success', js: notify_js('Success', 'I am a success.', type: 'success')) %&gt;
&lt;%= btn('Error', js: notify_js('Error', 'I am an error.', type: 'error'), type: 'button') %&gt;
</pre>



</section>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bs-helper-0.1.4 test/dummy/app/views/components/_notify.html.erb
bs-helper-0.1.3 test/dummy/app/views/components/_notify.html.erb
bs-helper-0.1.2 test/dummy/app/views/components/_notify.html.erb
bs-helper-0.1.1 test/dummy/app/views/components/_notify.html.erb
bs-helper-0.1.0 test/dummy/app/views/components/_notify.html.erb