brixxbox Wiki
Ask or search…
K

setBackgroundColor

Sets the background color of a control.

Parameters

  1. 1.
    controlId
  2. 2.
    colorName - use one of these: "default", "primary", "secondary", "success", "danger", "warning"

Example Usages

Set to warning
brixxApi.setBackgroundColor("myControl", "warning");
Set to normal
brixxApi.setBackgroundColor("myControl", "default");
brixxApi.setBackgroundColor("myControl"); //"default" is "default" ;)