Sha256: e986b91dcf8ec7b7d2fe769554a5468d9c79e1497c77f7db228dc968121cf5e8

Contents?: true

Size: 328 Bytes

Versions: 13

Compression:

Stored size: 328 Bytes

Contents

class InputWord < React::Component::Base
  param :label
  param :button
  param :operation
  render(DIV) do
    LABEL { params.label }
    INPUT(class: :word)
    BUTTON { params.button }.on(:click) do
      params.operation.run(word: Element[dom_node].find('.word').value)
      .fail { |e| alert e.message }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyper-operation-0.5.12 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.11 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.10 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.9 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.8 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.7 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.6 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.5 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.4 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.3 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.2 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.1 examples/five-letter-word-game/app/hyperloop/components/input_word.rb
hyper-operation-0.5.0 examples/five-letter-word-game/app/hyperloop/components/input_word.rb