Class: YuiRestClient::Widgets::Checkbox
- Defined in:
- lib/yui_rest_client/widgets/checkbox.rb
Overview
Class representing a Checkbox in UI. It can be YCheckBox or YCheckBoxFrame.
Instance Method Summary collapse
-
#check ⇒ Checkbox
Sends action to explicitly check the checkbox in UI (regardless of the current state).
-
#checked? ⇒ Boolean
Returns the state of checkbox (checked/unchecked).
-
#toggle ⇒ Checkbox
Sends action to toggle the checkbox in UI (i.e. uncheck when checked, or check otherwise).
-
#uncheck ⇒ Checkbox
Sends action to explicitly uncheck the checkbox in UI (regardless of the current state).
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
#check ⇒ Checkbox
Sends action to explicitly check the checkbox in UI (regardless of the current state).
11 12 13 14 |
# File 'lib/yui_rest_client/widgets/checkbox.rb', line 11 def check action(action: Actions::CHECK) self end |
#checked? ⇒ Boolean
Returns the state of checkbox (checked/unchecked). Gets value from ‘value’ parameter in JSON representation of YCheckBox or YCheckBoxFrame.
30 31 32 |
# File 'lib/yui_rest_client/widgets/checkbox.rb', line 30 def checked? property(:value) end |