NoRedInk/noredink-ui/16.3.0

NOTE: the latest version is 35.9.3

Nri.Ui.WhenFocusLeaves.V1

Listen for when the focus leaves the area, and then do an action.

{ firstId : String
, lastId : String
, tabBackAction : msg
, tabForwardAction : msg
}
-> Attribute msg

Attach this attribute to add a focus watcher to an HTML element and define what to do in reponse to tab keypresses in a part of the UI.

The ids referenced here are expected to correspond to elements in the container we are adding the attribute to.