Sha256: d6457b02a97db99b409f812675abcf13f9d97ff780780b003ff446dd7013fe20

Contents?: true

Size: 945 Bytes

Versions: 12

Compression:

Stored size: 945 Bytes

Contents

Coprl::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
        foo_action 'Showing new random fact!'
        snackbar last_response.data
      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/plugins/index.pom
coprl-3.0.0.beta.11 app/demo/plugins/index.pom
coprl-3.0.0.beta.10 app/demo/plugins/index.pom
coprl-3.0.0.beta.9 app/demo/plugins/index.pom
coprl-3.0.0.beta.8 app/demo/plugins/index.pom
coprl-3.0.0.beta.7 app/demo/plugins/index.pom
coprl-3.0.0.beta.6 app/demo/plugins/index.pom
coprl-3.0.0.beta.5 app/demo/plugins/index.pom
coprl-3.0.0.beta.4 app/demo/plugins/index.pom
coprl-3.0.0.beta.3 app/demo/plugins/index.pom
coprl-3.0.0.beta.2 app/demo/plugins/index.pom
coprl-3.0.0.beta.1 app/demo/plugins/index.pom