Sha256: 2c386d83f9b5e18f4791cdeb4a9e23a32649861dd353dcf799443a8b718b8a85

Contents?: true

Size: 810 Bytes

Versions: 5

Compression:

Stored size: 810 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:forms) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer
  page_title 'Forms'

  grid do
    column 1
    column 4 do
      card 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 app/demo/components/forms.pom
voom-presenters-0.1.12 app/demo/components/forms.pom
voom-presenters-0.1.11 app/demo/components/forms.pom
voom-presenters-0.1.10 app/demo/components/forms.pom
voom-presenters-0.1.9 app/demo/components/forms.pom