useDistanceCalculationStrategy

caph.focus.nearestFocusableFinderProvider. useDistanceCalculationStrategy

Selects the current distance calculation strategy. If you use unregistered strategy, will not be changed.

(static) useDistanceCalculationStrategy(name) → {caph.focus.nearestFocusableFinderProvider}

Parameters:
Name Type Description
name string

The strategy name to be used.

Returns:
Type
caph.focus.nearestFocusableFinderProvider
Example
angular.module('myApp', ['caph.focus']).config(['nearestFocusableFinderProvider', function(nearestFocusableFinderProvider) {
 	nearestFocusableFinderProvider.useDistanceCalculationStrategy('sample');
 }]);