Open this page in the API Guide

ViewPanel.resetContent Method

Removes all preview content,