JavaScript API Reference/Ab.view.Component object

show(show, includeHeader)

Show or hide the control content.

Parameters:

  • show (boolean): whether to show ( true ) or hide ( false ) the content.
  • includeHeader (boolean): (optional) whether to also show or hide the panel header bar with the title and buttons, as specified by the show parameter; applies only to panel controls, such as form or report grid.


Example:

Hide the form content, but do not hide the form header bar.

this.employeeForm.show(false, false);


Completely hide the form.

this.employeeForm.show(false, true);