GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action (google_api_chat v0.31.0) View Source
An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.
Attributes
-
function
(type:String.t
, default:nil
) - Apps Script function to invoke when the containing element is clicked/activated. -
loadIndicator
(type:String.t
, default:nil
) - -
parameters
(type:list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1ActionParameter.t)
, default:nil
) - List of action parameters. -
persistValues
(type:boolean()
, default:nil
) - Indicates whether form values persist after the action. The default value isfalse
. Iftrue
, form values remain after the action is triggered. When using LoadIndicator.NONE for actions,persist_values
=true
is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. Iffalse
, the form values are cleared when the action is triggered. Whenpersist_values
is set tofalse
, it is strongly recommended that the card use LoadIndicator.SPINNER for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action{ function: String.t() | nil, loadIndicator: String.t() | nil, parameters: [GoogleApi.Chat.V1.Model.GoogleAppsCardV1ActionParameter.t()] | nil, persistValues: boolean() | nil }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.