core/cta_feedback

Handle clicking on action links of the feedback alert.

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

Members

(static, constant) registerEventListeners

Source:

Attach the necessary event handlers to the action links

Methods

(inner) hideRoot(clickedItem) → {HTMLElement}

Source:

Hide the root node of the CTA notification.

Parameters:
Name Type Description
clickedItem HTMLElement

The action element that the user chose.

Returns:
Type
HTMLElement

(inner) recordAction(clickedItem) → {Promise}

Source:

Record the action that the user took.

Parameters:
Name Type Description
clickedItem HTMLElement

The action element that the user chose.

Returns:
Type
Promise