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