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:
Example
angular.module('myApp', ['caph.focus']).config(['nearestFocusableFinderProvider', function(nearestFocusableFinderProvider) {
nearestFocusableFinderProvider.useDistanceCalculationStrategy('sample');
}]);