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