directive:mohistory.thumbView source

Wrapper for the code required for the directive, including the controller, as well as, a link function to handle keyboard listeners.

Members

$inject

Methods

addFacetAndClose

Close the dialog window and add selected facet to the hash.

closeItemDialog

Closes the dialog window which was populated with a given item's details. Triggered either by clicking the "X" icon, clicking on the grayed out background, or hitting the escape key.

openItemDialog (item)

Opens a dialog window populated with the selected item's details. Triggered when a user clicks on a thumbnail image.

Parameters:
NameTypeDescription
item

Object containing the item's details.

thumbViewLink ($scope, $element, $attrs, $ctrl)

This link function for the Thumbnail view directive is used to implement keyboard accessibility for the item dialog window. The dialog window traps tab navigation and pressing escape exits the menu.

Parameters:
NameTypeDescription
$scope

an AngularJS scope object.

$element

the jqLite-wrapped element that this directive matches.

$attrs

a hash object with key-value pairs of normalized attribute names and their corresponding attribute values.

$ctrl

A reference to the directive's controller.