UNPKG

@angular/material

Version:
25 lines (24 loc) 856 B
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { QueryList } from '@angular/core'; import { ListKeyManager, CanDisable } from './list-key-manager'; /** * This is the interface for focusable items (used by the FocusKeyManager). * Each item must know how to focus itself and whether or not it is currently disabled. */ export interface Focusable extends CanDisable { focus(): void; } export declare class FocusKeyManager extends ListKeyManager<Focusable> { constructor(items: QueryList<Focusable>); /** * This method sets the active item to the item at the specified index. * It also adds focuses the newly active item. */ setActiveItem(index: number): void; }