Sha256: ec4d1fa457c2db41cf9caa08fe8e479921b7ddd9a97decff6e3e6a1f82c702f7

Contents?: true

Size: 789 Bytes

Versions: 9

Compression:

Stored size: 789 Bytes

Contents

require_relative '../helpers/indented_grid'

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

  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

9 entries across 9 versions & 1 rubygems

Version Path
voom-presenters-0.1.8 app/demo/components/forms.pom
voom-presenters-0.1.7 app/demo/components/forms.pom
voom-presenters-0.1.6 app/demo/components/forms.pom
voom-presenters-0.1.5 app/demo/components/forms.pom
voom-presenters-0.1.4 app/demo/components/forms.pom
voom-presenters-0.1.3 app/demo/components/forms.pom
voom-presenters-0.1.2 app/demo/components/forms.pom
voom-presenters-0.1.1 app/demo/components/forms.pom
voom-presenters-0.1.0 app/demo/components/forms.pom