Input Control - how to get Title value as variable?

Input Control - how to get Title value as variable?

Hi,

I am trying to modify the "Push to MQTT from Dashboard" example. 
I want to use, for example, the value of Title field of the Input Control widget and use it as the variable in the object that I send to mqtt.

I need to add and modify, but for Title value:

 const myData = scope.find((x) => x.variable === "push_payload") || scope[0];

What do I need to change to retrieve the Title value? Thx!