docs/versioned_docs/version-2.1.0/actions/control-component.md
Control component action invokes the component specific actions. Component specific actions are the actions that are exclusive actions for a particular widget. Component specific actions can be triggered either through the event handlers or from the Run JavaScript code query.
:::info Check out the live demo of Component specific actions demonstrated in one of our community call. :::
| Widget | Component Specific Actions |
|---|---|
| Button | Click, Set label, Disable, Visibility, Loading |
| Text | Set text, Set Visibility |
| Text Input | Set text, Clear, Set Focus, Set Blur, Disable, Visibility |
| Text Area | Set text, Clear |
| Modal | Show, Close |
| Table | Set page, Select row, Deselect Row, Discard changes |
| Dropdown | Select option |
| Multiselect | Select option, Deselect option, Clear selection |
| Map | Set location |
| Checkbox | Set checked |
| Radio button | Select option |
| Tabs | Set tab |
| Color picker | Set color |
| File picker | Clear files |
:::info Currently, Component specific actions are supported only by the above listed widgets. We are working on bringing component specific actions for the remaining widgets. :::
Drag a Text Input and a Button widget onto the canvas.
Go to the Inspector on the left sidebar to check the exposed variables available for the textinput1 widget under the components. You'll see that the variable value is an empty string because the field value of the text input widget is empty right now.
value in inspector has been updated.textinput1 in component dropdown, Set text as Action, and in Text field enter the text that you want to update in the field value.Syntax:
await components.textinput1.clear()