Handle selecting parent competency in competency form.
- Source:
- Copyright:
- 2015 Issam Taboubi
- 2015 Issam Taboubi
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(inner) The :String
parent competency button selector.
Type:
- String
(inner) The :String
hidden input field selector.
Type:
- String
(inner) The :String
static element displaying the parent competency.
Type:
- String
(inner) The :Number
competency framework ID.
Type:
- Number
(inner) The :Number
page context ID.
Type:
- Number
Methods
(inner) init(buttonSelector, inputSelector, staticElementSelector, frameworkId, pageContextId)
Main initialisation.
Parameters:
Name | Type | Description |
---|---|---|
buttonSelector |
String | The parent competency button selector. |
inputSelector |
String | The hidden input field selector. |
staticElementSelector |
String | The static element displaying the parent competency. |
frameworkId |
Number | The competency framework ID. |
pageContextId |
Number | The page context ID. |
(inner) registerEvents()
Register the events of parent competency button click.
(inner) setParent(data)
Set the parent competency in the competency form.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Data containing selected competency. |