Sha256: 29f5687dd7863764b414c02cdac5fc29386a8ba7a41672c6c760899d1090b630

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

module Browser; module DOM; class Element < Node

class Button < Element
  def_selector "button"

  def disabled?
    `#@native.disabled`
  end

  def disabled=(value)
    `#@native.disabled = #{value}`
  end

  def autofocus?
    `#@native.autofocus`
  end

  def autofocus=(value)
    `#@native.autofocus = #{value}`
  end

  def name_
    `#@native.name`
  end

  def name_=(value)
    `#@native.name = #{value}`
  end
end

end; end; end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
atome-opal-browser-0.3.9.5 opal/browser/dom/element/button.rb
opal-browser-0.3.3 opal/browser/dom/element/button.rb
opal-browser-0.3.2 opal/browser/dom/element/button.rb
opal-browser-0.3.1 opal/browser/dom/element/button.rb
opal-browser-0.3.0 opal/browser/dom/element/button.rb