office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
10 lines (9 loc) • 469 B
TypeScript
import { ISelectionLayout, SelectionDirection } from './interfaces';
export declare class SelectionLayout implements ISelectionLayout {
private _direction;
constructor(direction: SelectionDirection);
getItemIndexAbove(focusIndex: number, items: any[]): number;
getItemIndexBelow(focusIndex: number, items: any[]): number;
getItemIndexLeft(focusIndex: number, items: any[]): number;
getItemIndexRight(focusIndex: number, items: any[]): number;
}