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