Add detailsElement and toggleEvent objects.
#1728
Merged
detailsElement and toggleEvent objects.
#1728