[widget] Return a string for detached nodes.