Sha256: a36f72b94100722372a9f8efbb1a122786d891ff1c57b3dbacd07dbbde9afc0c

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

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

  indented_grid do
    heading 'Clear'
    body 'Allows you to clear an input control.',
         'Takes the id of the element to clear.'

    text_field id: :input_to_clear do
      label 'Input to clear'
      value 'Clear me'
    end

    button 'clear' do
      event :click do
        clear :input_to_clear
      end
    end
  end
  attach :code, file: __FILE__
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voom-presenters-0.2.0 app/demo/events/actions/clear.pom