hub.eb?material_id=372&track_id=368

JavaScript API: Controls


The controls interface acts as a parent object for all controls on every page within a form. Individual controls are accessed using their control name e.g. controls.myControl.

It provides the ability to retrieve and set properties of a given control, this includes:

  • Hide/Show e.g. controls.myButton.hide(); and controls.myButton.isHidden();
  • Display Only e.g. controls.myRepeater.setDisplayOnly(true); and controls.myRepeater.isDisplayOnlyIncludingParents();
  • CSS classes e.g. controls.myPanel.addCssClass("myClass");
  • CSS styles e.g. controls.myPanel.borderStyle = "1px solid black";
  • Modifiers e.g. controls.myButton.hasModifier("on-success");

Current Module

Related