Widget Ui

Hi everyone,When I grab an object, I want the object’s name to be displayed in the widget. Thank you for your help ?