tool_lp/parentcompetency_form

Handle selecting parent competency in competency form.

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

Members

(inner) The :String

Source:

parent competency button selector.

Type:
  • String

(inner) The :String

Source:

hidden input field selector.

Type:
  • String

(inner) The :String

Source:

static element displaying the parent competency.

Type:
  • String

(inner) The :Number

Source:

competency framework ID.

Type:
  • Number

(inner) The :Number

Source:

page context ID.

Type:
  • Number

Methods

(inner) init(buttonSelector, inputSelector, staticElementSelector, frameworkId, pageContextId)

Source:

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()

Source:

Register the events of parent competency button click.

(inner) setParent(data)

Source:

Set the parent competency in the competency form.

Parameters:
Name Type Description
data Object

Data containing selected competency.