Sha256: 1efc45b13ceaa7d8907ed197218db1201f0859eda51f7d606e59c8ed7a56bc42

Contents?: true

Size: 599 Bytes

Versions: 10

Compression:

Stored size: 599 Bytes

Contents

Coprl::Presenters.define(:scroll_to, namespace: :plugins) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :plugin_drawer
  plugin :scroll_to
  page_title 'Scroll to'

  indented_grid do
    subheading 'Sometimes you need to scroll to find content after some action. This is what the scroll to plugin is for.'
    button :scroll do
      event :click do
        scroll_to :scroll_target #, smooth: true, offset: 100
      end
    end
    (1..100).each do
      body '.'
    end
    title 'Thanks for scrolling here', id: :scroll_target

    attach :code, file: __FILE__
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.11 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.10 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.9 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.8 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.7 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.6 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.5 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.4 app/demo/plugins/scroll_to.pom
coprl-3.0.0.beta.3 app/demo/plugins/scroll_to.pom