I need to display a table/grid in a tooltip and eventually populate the table with a query entity. I need sample code or guidance

I need to display a table/grid in a tooltip and eventually populate the table with a query entity. I need sample code or guidance 

Appian already has such a thing in their application but I am not able to replicate it with a read-only grid code.

  Discussion posts and replies are publicly visible