- Description:
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:
- Copyright:
- 2015 Frédéric Massart - FMCorz.net
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
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.
Classes
Methods
(inner) _afterRender()
- Description:
Hook to executed after the view is rendered.
- Source:
(inner) _fetchCompetencies(planId, searchText) → {Promise}
- Description:
Fetch the competencies.
- Source:
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}
- Description:
Convenience method to get a plan object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | The plan ID. |
Returns:
The plan.
- Type
- Object | undefined
(inner) _loadCompetencies() → {Promise}
- Description:
Load the competencies.
- Source:
Returns:
- Type
- Promise
(inner) _loadPlans() → {Promise}
- Description:
Load the plans.
- Source:
Returns:
- Type
- Promise
(inner) _preRender() → {Promise}
- Description:
Hook to executed before render.
- Source:
Returns:
- Type
- Promise
(inner) _render() → {Promise}
- Description:
Render the dialogue.
- Source:
Returns:
- Type
- Promise