Sha256: b7b219929970128bad0e5d31a57856eb0e7585e9f760f3047aedbccd36bd2021
Contents?: true
Size: 642 Bytes
Versions: 15
Compression:
Stored size: 642 Bytes
Contents
Voom::Presenters.define(:replaces_action) do helpers Demo::Helpers::IndentedGrid attach :top_nav attach :events_drawer indented_grid do heading 'Replaces' body 'Replaces will replace content on the page with another presenter.', 'It takes the id of what to replace, usually a content block. And the presenter to replace it with.', "You pass parameters to it as the last argument." subheading 'Replaces' button 'replaces' do event :click do replaces :replace_me, :replace_text, text: "I was replaced" end end attach :replace_text end attach :code, file: __FILE__ end
Version data entries
15 entries across 15 versions & 1 rubygems