Button in TopBar

Alright, you can do like this:

Create param as a new object, then set the payload to whatever (in this example 'test'

var param = new Object();
param.payload = 'test';

Now when you click the button, it will work
image