The disable detaches all events associated to the widget and its children and marks them as disabled.
widget.disable();