[BUG #7710] Added samples for the widget api