tool_lp/competencyruleconfig

Description:
  • Competency rule config.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Competency rule config.

Methods

(protected, inner) _afterChange()

Description:
  • After change.

    Triggered when a change occured.

Source:

(protected, inner) _afterRender()

Description:
  • After render hook.

Source:

(protected, inner) _afterRuleConfigChange(e, rule)

Description:
  • After change in rule's config.

    Triggered when a change occured in a specific rule config.

Source:
Parameters:
Name Type Description
e Event
rule Rule

(protected, inner) _find(selector) → {JQuery}

Description:
  • Find a node in the dialogue.

Source:
Parameters:
Name Type Description
selector String
Returns:
Type
JQuery

(protected, inner) _getApplicableOutcomesOptions() → {Array}

Description:
  • Get the applicable outcome options.

Source:
Returns:
Type
Array

(protected, inner) _getApplicableRulesOptions() → {Array}

Description:
  • Get the applicable rules options.

Source:
Returns:
Type
Array

(protected, inner) _getConfig() → {Object}

Description:
  • Get the full config for the competency.

Source:
Returns:

Contains rule, ruleoutcome and ruleconfig.

Type
Object

(protected, inner) _getOutcome() → {String}

Description:
  • Get the selected outcome code.

Source:
Returns:
Type
String

(protected, inner) _getRule() → {null|Rule}

Description:
  • Get the selected rule.

Source:
Returns:
Type
null | Rule

(protected, inner) _getRuleName(type) → {String}

Description:
  • Return the name of a rule.

Source:
Parameters:
Name Type Description
type String

The type of a rule.

Returns:
Type
String

(protected, inner) _initOutcomes() → {Promise}

Description:
  • Initialise the outcomes.

Source:
Returns:
Type
Promise

(protected, inner) _initRules() → {Promise}

Description:
  • Initialise the rules.

Source:
Returns:
Type
Promise

(protected, inner) _isValid() → {Boolean}

Description:
  • Whether or not the current config is valid.

Source:
Returns:
Type
Boolean

(protected, inner) _preRender() → {Promise}

Description:
  • Hook to executed before render.

Source:
Returns:
Type
Promise

(protected, inner) _render() → {Promise}

Description:
  • Render the dialogue.

Source:
Returns:
Type
Promise

(protected, inner) _setUp()

Description:
  • Set up the instance.

Source:

(protected, inner) _switchedOutcome()

Description:
  • Called when the user switches outcome.

Source:

(protected, inner) _switchedRule()

Description:
  • Called when the user switches rule.

Source:

(protected, inner) _trigger(type, data)

Description:
  • Trigger an event.

Source:
Parameters:
Name Type Description
type String

The type of event.

data Object

The data to pass to the listeners.

(inner) canBeConfigured() → {Boolean}

Description:
  • Whether the current competency can be configured.

Source:
Returns:
Type
Boolean

(inner) close()

Description:
  • Close the dialogue.

Source:

(inner) display() → {Promise}

Description:
  • Opens the picker.

Source:
Returns:
Type
Promise

(inner) on(type, handler)

Description:
  • Register an event listener.

Source:
Parameters:
Name Type Description
type String

The event type.

handler function

The event listener.

(protected, inner) ready() → {Promise}

Description:
  • Returns a promise that is resolved when the module is ready.

Source:
Returns:
Type
Promise

(inner) setTargetCompetencyId(competencyId)

Description:
  • Set the target competency.

Source:
Parameters:
Name Type Description
competencyId Number

The target competency Id.