One possible way: configure your ui_text node as below (for instance),
then make your buttons to generate the property topic. You could hardcode the topic in the buttons equal to the label name (see pic below). This will work if the buttons and nodes are wired in the same flow (ui_text dowstream of course) and you preserve the topic property along the way.