Class: Google::Apis::CloudsearchV1::FormAction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FormAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#action_method_name ⇒ String
Apps script function that should be invoked in the developer's apps script when the containing element is clicked/activated.
-
#load_indicator ⇒ String
Corresponds to the JSON property
loadIndicator. -
#parameters ⇒ Array<Google::Apis::CloudsearchV1::ActionParameter>
Corresponds to the JSON property
parameters. -
#persist_values ⇒ Boolean
(also: #persist_values?)
Indicates whether form values persist after the action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FormAction
constructor
A new instance of FormAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FormAction
Returns a new instance of FormAction.
7835 7836 7837 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_method_name ⇒ String
Apps script function that should be invoked in the developer's apps script
when the containing element is clicked/activated.
Corresponds to the JSON property actionMethodName
7804 7805 7806 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7804 def action_method_name @action_method_name end |
#load_indicator ⇒ String
Corresponds to the JSON property loadIndicator
7809 7810 7811 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7809 def load_indicator @load_indicator end |
#parameters ⇒ Array<Google::Apis::CloudsearchV1::ActionParameter>
Corresponds to the JSON property parameters
7814 7815 7816 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7814 def parameters @parameters end |
#persist_values ⇒ Boolean Also known as: persist_values?
Indicates whether form values persist after the action. When false, the Apps
Script is responsible for persisting values, by setting any form field values
using the formInputs in the event. Disabling this behavior can be used if the
add-on needs the ability to clear form fields, for example, as with persistent
values, there is no means for clearing existing values. When disabling
persistent values, it is strongly recommended that the add-on use
LoadIndicator.SPINNER for all events, as this locks the UI to ensure no
changes are made by the user while the action is being processed. When using
LoadIndicator.NONE for any of the actions, persistent values are recommended,
as it ensures that any changes made by the user after form / on change actions
are sent to the server are not overwritten by the response. Persistent values
disabled by default. While we recommend persistent values be used in the
typical use case, we do not enable by default, as doing so would change the
current behavior of existing add-ons in prod.
Corresponds to the JSON property persistValues
7832 7833 7834 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7832 def persist_values @persist_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7840 7841 7842 7843 7844 7845 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7840 def update!(**args) @action_method_name = args[:action_method_name] if args.key?(:action_method_name) @load_indicator = args[:load_indicator] if args.key?(:load_indicator) @parameters = args[:parameters] if args.key?(:parameters) @persist_values = args[:persist_values] if args.key?(:persist_values) end |