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