Sha256: 9da085cd593d27d695acc4191485a3be92f942d4101fa4192bc00fd757f34327

Contents?: true

Size: 765 Bytes

Versions: 12

Compression:

Stored size: 765 Bytes

Contents

Coprl::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

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.11 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.10 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.9 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.8 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.7 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.6 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.5 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.4 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.3 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.2 app/demo/events/actions/loads.pom
coprl-3.0.0.beta.1 app/demo/events/actions/loads.pom