be sure to use unique names for events, to not trigger some predefined event
if you want to trigger the predefined event - be sure to provide the exact same event arguments as described in the documentation for the same event. The component uses many public events inside self, so calling the existing public event with wrong parameters will result in the error.
data in the above snippet is just an example, the second parameter is just an array of values. If you are triggering custom events it can be any values which you wish.