Class: YuiRestClient::Widgets::Multilinebox
- Defined in:
- lib/yui_rest_client/widgets/multilinebox.rb
Overview
Class representing a multilinebox in the UI. It can be YMultiLineEdit.
Instance Method Summary collapse
-
#max_length ⇒ Integer
Returns maximum string length to set in the multilinebox.
-
#set(value) ⇒ Multilinebox
Sends action to set the value of multilinebox.
-
#value ⇒ String
Returns text that is currently set for multilinebox.
-
#visible_lines ⇒ Integer
Returns the default visible number of lines for the multilinebox.
Methods inherited from Base
#action, #collect_all, #debug_label, #enabled?, #exists?, #initialize, #property
Methods included from YuiRestClient::Waitable
Constructor Details
This class inherits a constructor from YuiRestClient::Widgets::Base
Instance Method Details
#max_length ⇒ Integer
Returns maximum string length to set in the multilinebox
25 26 27 |
# File 'lib/yui_rest_client/widgets/multilinebox.rb', line 25 def max_length property(:input_max_length) end |
#set(value) ⇒ Multilinebox
Sends action to set the value of multilinebox.
56 57 58 59 |
# File 'lib/yui_rest_client/widgets/multilinebox.rb', line 56 def set(value) action(action: Actions::ENTER_TEXT, value: value) self end |
#value ⇒ String
Returns text that is currently set for multilinebox. Gets value from ‘value’ parameter in JSON representation of YMultiLineEdit.
79 80 81 |
# File 'lib/yui_rest_client/widgets/multilinebox.rb', line 79 def value property(:value) end |
#visible_lines ⇒ Integer
Returns the default visible number of lines for the multilinebox
47 48 49 |
# File 'lib/yui_rest_client/widgets/multilinebox.rb', line 47 def visible_lines property(:default_visible_lines) end |