tool_lp/competencypicker_user_plans

Competency picker from user plans.

To handle 'save' events use: picker.on('save').

This will receive a object with either a single 'competencyId', or an array in 'competencyIds' depending on the value of multiSelect.

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

Classes

tool_lp/competencypicker_user_plans

Methods

(inner) _afterRender()

Source:

Hook to executed after the view is rendered.

(inner) _fetchCompetencies(planId, searchText) → {Promise}

Source:

Fetch the competencies.

Parameters:
Name Type Description
planId Number

The planId.

searchText String

Limit the competencies to those matching the text.

Returns:

The promise object.

Type
Promise

(inner) _getPlan(id) → {Object|undefined}

Source:

Convenience method to get a plan object.

Parameters:
Name Type Description
id Number

The plan ID.

Returns:

The plan.

Type
Object | undefined

(inner) _loadCompetencies() → {Promise}

Source:

Load the competencies.

Returns:
Type
Promise

(inner) _loadPlans() → {Promise}

Source:

Load the plans.

Returns:
Type
Promise

(inner) _preRender() → {Promise}

Source:

Hook to executed before render.

Returns:
Type
Promise

(inner) _render() → {Promise}

Source:

Render the dialogue.

Returns:
Type
Promise