Sha256: 1a3020336a4b0cb833678e0a68f5500ee6696f77f2b687847a4d39683f7cac6b

Contents?: true

Size: 490 Bytes

Versions: 8

Compression:

Stored size: 490 Bytes

Contents

Voom::Presenters.define(:toggle_visibility_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.'

    subheading context['reloaded'] ? "Reloaded" : 'Loads'
    button 'loads' do
      event :click do
        loads :events, reloaded: true
      end
    end
    heading context['reloaded'] ? "Reloaded" : 'Loaded'
  end
  attach :code, file: __FILE__
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 app/demo/events/actions/loads.pom
voom-presenters-0.1.12 app/demo/events/actions/loads.pom
voom-presenters-0.1.11 app/demo/events/actions/loads.pom
voom-presenters-0.1.10 app/demo/events/actions/loads.pom
voom-presenters-0.1.9 app/demo/events/actions/loads.pom
voom-presenters-0.1.8 app/demo/events/actions/loads.pom
voom-presenters-0.1.7 app/demo/events/actions/loads.pom
voom-presenters-0.1.6 app/demo/events/actions/loads.pom