Sha256: 66b0cf33a906e8bf0e754bf033b1b3de5588d411610648697c9fc22dbce912f4

Contents?: true

Size: 562 Bytes

Versions: 12

Compression:

Stored size: 562 Bytes

Contents

Coprl::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 a component.',
         'Takes the id of the element to clear.'

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

    subtitle 'Text to clear', id: :text_to_clear

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.11 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.10 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.9 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.8 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.7 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.6 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.5 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.4 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.3 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.2 app/demo/events/actions/clear.pom
coprl-3.0.0.beta.1 app/demo/events/actions/clear.pom