Sha256: 59c43e850a66eb5e7854058f7c64de390d06dc650b2257d061e5b8fe2ec4a03b

Contents?: true

Size: 578 Bytes

Versions: 15

Compression:

Stored size: 578 Bytes

Contents

Voom::Presenters.define(:field_level_events) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :events_drawer

  indented_grid do
    display 'Field Level Events'
    heading 'Text Fields'
    body 'This demonstrates that a change event will submit the  field value to the event action. '\
             'This works with posts and replace actions'
    text_field name: :myfield do
      label 'Data to post'
      event :change do
        replaces :context_list, :context_list
      end
    end
    attach :context_list
  end
  attach :code, file: __FILE__
end

Version data entries

15 entries across 15 versions & 1 rubygems

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