Sha256: 67b0e9f67b01fbcbeb6f12f62daa6f82e88a26c05de0b8b18d1dafa0984a0349
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
module Browser; module DOM; class Element < Node class Textarea < Element def value %x{ if (#@native.value == "") { return nil; } else { return #@native.value; } } end def value=(value) `#@native.value = #{value}` end def clear `#@native.value = ''` end end end; end; end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
diamonds-0.1.5 | lib/diamonds/opal/browser/dom/element/textarea.rb |
opal-browser-0.2.0 | opal/browser/dom/element/textarea.rb |