Sha256: 1e829c2ce107df4ffbed0bb2039ab46da70228151c290dd2e3e4f037f09eceb8

Contents?: true

Size: 764 Bytes

Versions: 7

Compression:

Stored size: 764 Bytes

Contents

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

  indented_grid do
    heading 'Loads'
    body 'Loads a new presenter, replacing the whole page.'

    content do
      subheading "#{context['reloaded'] ? "Reloaded" : 'Loads'} another presenter"
      button 'loads this page' do
        event :click do
          loads :loads_action, reloaded: true, nil_value:nil
        end
      end
      heading context['reloaded'] ? "Reloaded" : 'Loaded'
    end
    content do
      subheading "An absolute URL loads another page"
      button 'loads google.com' do
        event :click do
          loads 'https://google.com'
        end
      end
    end
  end
  attach :code, file: __FILE__
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/events/actions/loads.pom
voom-presenters-2.1.0 app/demo/events/actions/loads.pom
voom-presenters-2.0.3 app/demo/events/actions/loads.pom
voom-presenters-2.0.2 app/demo/events/actions/loads.pom
voom-presenters-2.0.1 app/demo/events/actions/loads.pom
voom-presenters-2.0.0 app/demo/events/actions/loads.pom
voom-presenters-0.2.0 app/demo/events/actions/loads.pom