Class: ShenmeGUI::Control::Textarea
- Defined in:
- lib/shenmegui/controls.rb
Instance Attribute Summary
Attributes inherited from Base
#children, #events, #id, #parent, #properties
Instance Method Summary collapse
Methods inherited from Base
#add_hook, #focus, #initialize, property, #render, shortcut, #sync, #sync_events, #update_properties, #validate
Constructor Details
This class inherits a constructor from ShenmeGUI::Control::Base
Instance Method Details
#<<(t) ⇒ Object
134 135 136 |
# File 'lib/shenmegui/controls.rb', line 134 def <<(t) text << "\n#{t}" end |
#text=(v) ⇒ Object
138 139 140 141 |
# File 'lib/shenmegui/controls.rb', line 138 def text=(v) update_properties({text: v, selection: [v.size]*2 }) sync end |