Sha256: fa1e0caaa6c934afbd7927234204fc2705c6750ae2b99753b6f4936dfda285af

Contents?: true

Size: 645 Bytes

Versions: 15

Compression:

Stored size: 645 Bytes

Contents

Voom::Presenters.define(:form_level_events) do
  helpers Demo::Helpers::IndentedGrid

  attach :top_nav
  attach :events_drawer

  indented_grid do
    display 'Posts in Form'
    body 'This demonstrates that a change event on **ANY** form input will send all the form inputs to the event action. '\
             'This works with posts and replace actions'
    form do
      text_field name: :myfield do
        label 'Data to post'
      end
      text_field name: :myfield2 do
        label 'More Data to post'
      end
      event :change do
        replaces :context_list, :context_list
      end
    end
    attach :context_list
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/events/form_level.pom
voom-presenters-2.1.0 app/demo/events/form_level.pom
voom-presenters-2.0.3 app/demo/events/form_level.pom
voom-presenters-2.0.2 app/demo/events/form_level.pom
voom-presenters-2.0.1 app/demo/events/form_level.pom
voom-presenters-2.0.0 app/demo/events/form_level.pom
voom-presenters-0.2.0 app/demo/events/form_level.pom
voom-presenters-0.1.13 app/demo/events/form_level.pom
voom-presenters-0.1.12 app/demo/events/form_level.pom
voom-presenters-0.1.11 app/demo/events/form_level.pom
voom-presenters-0.1.10 app/demo/events/form_level.pom
voom-presenters-0.1.9 app/demo/events/form_level.pom
voom-presenters-0.1.8 app/demo/events/form_level.pom
voom-presenters-0.1.7 app/demo/events/form_level.pom
voom-presenters-0.1.6 app/demo/events/form_level.pom