JavaScript
{dialog.object}setControlDisplay Method
Syntax
{dialog.object}.setControlDisplay(UXControlID, flag [, mode [, animationJSON]]);
Arguments
- UXControlID
The name/id of the control.
- flag
A true/false value defining if the control should be shown (true) or hidden (false).
- mode
Optional. Default value is 'd'. Can be one of the following values:
- Mode
- Definition
- d
Set the control display.
- v
Set the control visibility - preserves space taken by control when hidden.
- animationJSON
Optional. Only available if mode = 'd'. A JSON object defining the animation transition. See the A5.u.element.show Method for more information on how to define an animation JSON object.
Description
Show or hide a UX Control. Can also be used to show or hide a Tab or Accordion Pane.
Example
{dialog.object}.setControlDisplay('FRAME_1',false,'d',{type: 'fade',duration: 3000}); //hide the first Pane on Tab control 'TAB_1' {dialog.object}.setControlDisplay('TAB:TAB_1:PANE:0',false);