brixxbox Wiki
Search
K

setTextColor

Sets the text color for a control to one of the predefined colors

Parameters

  1. 1.
    controlId - the id of the control to change the color
  2. 2.
    colorName - one of these colors: "default", "primary", "secondary", "success", "danger", "warning"

Example Usages

Set Color to "warning"
brixxApi.setTextColor("myControl", "warning");
Set Color to default
brixxApi.setTextColor("myControl");