# triggerEvent

### Example Usages

```javascript
   brixxApi.triggerEvent("click", "myButton"); //This triggers a button Click for the control "myButton"
   brixxApi.triggerEvent("recordSaved"); //This triggers the event, that would otherwise occur if a record was saved
```

You can use the whole event name with the "on" prefix as well

```javascript
   brixxApi.triggerEvent("onClick", "myButton"); //This triggers a button Click for the control "myButton"
   brixxApi.triggerEvent("onRecordSaved"); //This triggers the event, that would otherwise occur if a record was saved
```
