Class: Style

Style

The Style control allows the use of an external CSS file to change the appearance of Coaches. A Style control provides the following configuration properties in Process Designer:

Style: Css File - the name of the css file. Css Type select the proper type from the dropdown. App Acronym - the Acronym of the App/Toolkit which contains the css file (When blank default is the current App/Toolkit). Theme name - the name assigned to this style theme (used in setStyle() ). CSSSpec[]
Css file CSS file name/url (e.g. "CompanyStyle1.css"). If css file has not been uploaded to process designer, a full url is needed. Otherwise, only the name and extension are required string
Css type File/URL category. If css file has been uploaded to process designer, this can be found by looking under files for the section the css file is under. Otherwise, URL type should be external
{Web | External | Server | Design}
string
App acronym Acronym of the process app the css file is stored in string
Theme name Name to use when referencing this theme string

new Style()

This constructor is never used explicitly.

Extends

Members

Methods

getType(){string}

Get descriptive string representing the type of control/section
Returns:
Type Description
string
Indicates bound status of control.
Returns:
Type Description
boolean True if the control is bound to coach data.
Checks if the view is enabled or not
Returns:
Type Description
boolean Enabled status
Example
var enabled = MyView.isEnabled();
Checks if control label is visible
Returns:
Type Description
boolean Label visibility status
Example
var labelVisible = MyView.isLabelVisible();
Propagates value change of control up through parent views
Name Type Description
event Event Value change event (usually an onchange event)
Returns:
Type Description
boolean True if a formula update was triggered on the control's parent, otherwise false
Example
MyView.propagateUp(event);
Show/hide the label of this view/control
Name Type Description
visible boolean Label visibility flag (true to show view label, false to hide)
Example
MyView.setLabelVisible(false);

setTheme(themeName)

Sets the theme to be used
Name Type Description
themeName string Updated Theme
Broadcasts the expression trigger for the specified view
Name Type Default Description
phase int bpmext.ui.PHASE_NORMAL optional The phase we are currently in
Example
MyView.triggerFormulaUpdates();