Class: YuiRestClient::Widgets::Textbox
- Defined in:
- lib/yui_rest_client/widgets/textbox.rb
Overview
Class representing a textbox in the UI. It can be YInputField.
Instance Method Summary collapse
-
#max_length ⇒ Integer
Returns maximum string length to set in the textbox.
-
#password? ⇒ Boolean
Check if textbox has password mode.
-
#set(value) ⇒ Textbox
Sends action to set the value of textbox.
-
#valid_chars ⇒ String
Returns valid chars to set in the textbox.
-
#value ⇒ String
Returns text that is currently set for textbox.
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 textbox
23 24 25 |
# File 'lib/yui_rest_client/widgets/textbox.rb', line 23 def max_length property(:input_max_length) end |
#password? ⇒ Boolean
Check if textbox has password mode
51 52 53 |
# File 'lib/yui_rest_client/widgets/textbox.rb', line 51 def password? property(:password_mode) end |
#set(value) ⇒ Textbox
Sends action to set the value of textbox.
32 33 34 35 |
# File 'lib/yui_rest_client/widgets/textbox.rb', line 32 def set(value) action(action: Actions::ENTER_TEXT, value: value) self end |
#valid_chars ⇒ String
Returns valid chars to set in the textbox
70 71 72 |
# File 'lib/yui_rest_client/widgets/textbox.rb', line 70 def valid_chars property(:valid_chars) end |
#value ⇒ String
Returns text that is currently set for textbox. Gets value from ‘value’ parameter in JSON representation of YInputField.
89 90 91 |
# File 'lib/yui_rest_client/widgets/textbox.rb', line 89 def value property(:value) end |