Class: YuiRestClient::Widgets::Numberbox
- Defined in:
- lib/yui_rest_client/widgets/numberbox.rb
Overview
Class representing a numberbox in the UI. It can be YIntField.
Instance Method Summary collapse
-
#max_value ⇒ Integer
Returns maximum value to set in the numberbox.
-
#min_value ⇒ Integer
Returns minimum value to set in the numberbox.
-
#set(value) ⇒ Numberbox
Sends action to set the value of numberbox.
-
#value ⇒ Integer
Returns number that is currently set for numberbox.
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_value ⇒ Integer
Returns maximum value to set in the numberbox
41 42 43 |
# File 'lib/yui_rest_client/widgets/numberbox.rb', line 41 def max_value property(:max_value) end |
#min_value ⇒ Integer
Returns minimum value to set in the numberbox
22 23 24 |
# File 'lib/yui_rest_client/widgets/numberbox.rb', line 22 def min_value property(:min_value) end |
#set(value) ⇒ Numberbox
Sends action to set the value of numberbox.
50 51 52 53 |
# File 'lib/yui_rest_client/widgets/numberbox.rb', line 50 def set(value) action(action: Actions::ENTER_TEXT, value: value) self end |
#value ⇒ Integer
Returns number that is currently set for numberbox. Gets value from ‘value’ parameter in JSON representation of YIntField.
71 72 73 |
# File 'lib/yui_rest_client/widgets/numberbox.rb', line 71 def value property(:value) end |