Following example demonstrate how you can display the object information in the custom popup. Just click on the objects on the following map and it will display information related to the clicked object.