Class EventAction

EventAction

An EventAction to run when a CEL expression validation condition is met.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

 const 
  
 eventAction 
  
 = 
  
 CardService 
 . 
 newEventAction 
 (). 
 setActionRuleId 
 ( 
 "CEL_TEXTBOX_EVALUATION_RULE_ID" 
 ) 
 . 
 setExpressionDataAction 
 ( 
 expressionDataAction 
 ) 
 . 
 addPostEventTrigger 
 ( 
 trigger_success 
 ) 
 . 
 addPostEventTrigger 
 ( 
 trigger_failure 
 ); 

Methods

Method Return type Brief description
Event Action Adds a CEL expression validation condition to evaluate after the event action runs.
Event Action Sets a unique identifier for the event action.
Event Action Set the common widget action for widgets.
Event Action Sets the CEL expression validation data action for widgets.

Detailed documentation

addPostEventTrigger(trigger)

Adds a CEL expression validation condition to evaluate after the event action runs.

Parameters

Name Type Description
trigger
Trigger The CEL expression validation trigger to add.

Return

EventAction — The EventAction, for chaining.


setActionRuleId(actionRuleId)

Sets a unique identifier for the event action.

Parameters

Name Type Description
action Rule Id
String The unique identifier for the action rule.

Return

EventAction — The EventAction, for chaining.


setCommonWidgetAction(commonWidgetAction)

Set the common widget action for widgets.

Parameters

Name Type Description
common Widget Action
Common Widget Action The common widget action.

Return

EventAction — The EventAction, for chaining.


setExpressionDataAction(expressionDataAction)

Sets the CEL expression validation data action for widgets.

Parameters

Name Type Description
expression Data Action
Expression Data Action The expression data action.

Return

EventAction — The EventAction, for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: