> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/app/setcompoentfocus.md).

# setCompoentFocus

## Description

Highlights a specific text in a component.

## Input / Parameter

| Name          | Description                               | Input Type  | Default | Options     | Required                           |
| ------------- | ----------------------------------------- | ----------- | ------- | ----------- | ---------------------------------- |
| component     | The name of the component.                | String/Text | -       | -           | Partial (Yes if no 'componentId'.) |
| componentId   | The id of the component.                  | String/Text | -       | -           | Partial (Yes if no 'component'.)   |
| selectAllText | Highlight all the words in the component. | Boolean     | false   | true, false | No                                 |
| hideKeyboard  | Hide or display keyboard.                 | Boolean     | false   | true, false | No                                 |

**\* Note:** Either component or componentId must have value in order for this function to work.

## Output

N/A

Note: The component will be updated to show the highlighted text in the edit component.

## Callback

N/A

## Video

Coming Soon.

## Example

Coming Soon.

### Steps

Coming Soon.

### Result

Coming Soon.

## Links
