Sha256: f5eef61d7716d830251e76483fffa041b46e4949623b5589e253c875af4a66ac

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

Voom::Presenters.define(:halted) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :events_drawer

  indented_grid do
    display 'Halted Events'
    body 'This demonstrates how to respond to failed, or halted events'

    content do
      button :failed_post do
        event :click do
          posts '_echo_', status: 500
        end
        event 'V:eventsHalted' do
          snackbar 'That did not work! Please try again later.'
        end
      end

    end
  end
  attach :code, file: __FILE__
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/events/halted.pom