Open this page in the API Guide

DataPreview.onDataPreviewCollapsed Method

Called when the data preview is collapsed.