Sha256: 43dc35063c0b920adafdab8ec0df006e73a78785b10b9ce518b9b968274fba02

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:snackbar) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer
  page_title 'Snackbar'

  indented_grid do
    title 'On Page'
    body 'You can attach a snackbar on the server side and will render after load.'
    snackbar 'Top Level Important Information!'

    attach :snackbar_attached

    title 'As Event'
    button 'Show Snackbar', id: :show_snackbar do
      event :click do
        snackbar 'You clicked snackbar the button!'
      end
    end
  end

  attach :code, file: __FILE__
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 app/demo/components/snackbar.pom
voom-presenters-0.1.12 app/demo/components/snackbar.pom
voom-presenters-0.1.11 app/demo/components/snackbar.pom
voom-presenters-0.1.10 app/demo/components/snackbar.pom
voom-presenters-0.1.9 app/demo/components/snackbar.pom