UNPKG

md2

Version:

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Chips(Tags), Collapse, Colorpicker, Data Table, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.

18 lines (17 loc) 653 B
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; }