| coachViewHelper.loadResources |
Forces the load of all JavaScript files that are
loaded using the coachViewHelper.loadResource function. Typically, you use this
function in view preview handler only, and you do not need to call it in the view
load method.
- Syntax
coachViewHelper.loadResources()
|
| coachViewHelper.loadResource |
Loads the JavaScript files that you may need in your
view. For example, you can use the coachViewHelper.loadResource function to load
the JavaScript that contains your AngularJS view
controller. This function is typically called in the load method of your view
before the view is bootstrapped.
- Syntax
coachViewHelper.loadResource(<managed_asset_zipfilename>, <toolkit_acronym>,
<relative_location_of_JSfile>, <optional_fallback_JSfile_if_first_file_cannot_be_loaded>)
- Example
coachViewHelper.loadResource('myCoachViewAssets.zip', 'MCVA', '/scripts/coachView1.es.ja','/scripts/coachView1.en.ja')
|
| coachViewHelper.bootstrap |
Bootstraps your view by compiling your view and calling your AngularJS view controller.
Typically, this function is called at the end of your view's load method.
- Syntax
-
coachViewHelper.bootstrap(<reference_to_view>, <module_name>, <controller_name>,
<optional_object_that_contains_minimum_supported_browser_versions_for_this_coachview>)
- Example
-
coachViewHelper.bootstrap(this, 'responsive.coaches', 'myCoachView', {Explorer: 9})
|
| coachViewHelper.init |
Initializes the view. Typically, this function is called from the view's view
method.
- Syntax
coachViewHelper.init();
|
| coachViewHelper.notify |
Informs AngularJS that something that the view is interested in has changed. Typically, this
results in a digest of the view, and is called from the view's change method.
- Syntax
coachViewHelper.notify(<reference_to_view>, <reference_to_validation_event>)
- Example
coachViewHelper.notify(this, event)
|
| coachViewHelper.validate |
Informs AngularJS that there are validation events that must be shown. Typically, this results in
a digest of the view and is called from the view's validate method.
- Syntax
coachViewHelper.validate(<reference_to_view>, <reference_to_validation_event>)
- Example
coachViewHelper.validate(this, event)
|
| coachViewHelper.compile |
Compiles all the elements on a coach. Typically, views do not need to call this function
directly.
- Syntax
coachViewHelper.compile()
|
| coachViewHelper.compileElement |
Compiles a single element and its children. Typically, views do not need to call this function
directly.
- Syntax
coachViewHelper.compileElement(<reference_to_element>)
- Example
coachViewHelper.compileElement(element)
|
| coachViewHelper.compileContentBoxes |
Compiles content boxes. This function is useful if a content box was added after the coach or
page was loaded.
- Syntax
coachViewHelper.compileContentBoxes(<list_of_content_boxes>)
- Example
coachViewHelper.compileContentBoxes(contentBoxes)
|
| coachViewHelper.alreadyCompiled |
Checks if a given element has already been
compiled.
- Syntax
coachViewHelper.alreadyCompiled(<reference_to_element>)
- Example
coachViewHelper.alreadyCompiled(element)
|
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38