Sha256: cafe8ed54089ce02a6c6f013b2d1c90bbe7492d3e9ba230c4a551473ea0965ff

Contents?: true

Size: 937 Bytes

Versions: 6

Compression:

Stored size: 937 Bytes

Contents

Voom::Presenters.define(:index, namespace: :plugins) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :plugin_drawer
  plugin :foo

  indented_grid do
    display 'Sample Plugin'
    body 'You can extend the presenters by writing a plugin.'
    body 'Plugins can fully extend and override built in presenter behavior.'
    blank
    icon 'fa-hand-point-left', position: :left
    subheading 'Select a plugin to get started'
    blank
    body 'The plugin generator is the easiest way to get started.'
    body 'presenters generate plugin <your plugin name>'
    blank
    body 'For a complete example checkout the sample '\
               '[foo_presenter_plugin](https://github.com/rx/foo_presenter_plugin).'
    foo(random_fact)
    button 'New Random Fact' do
      event :click do
        bar 'Showing new random fact!'
        snackbar last_response.data
      end
    end
  end
  attach :code, file: __FILE__
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/plugins/index.pom
voom-presenters-2.1.0 app/demo/plugins/index.pom
voom-presenters-2.0.3 app/demo/plugins/index.pom
voom-presenters-2.0.2 app/demo/plugins/index.pom
voom-presenters-2.0.1 app/demo/plugins/index.pom
voom-presenters-2.0.0 app/demo/plugins/index.pom