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.

19 lines (18 loc) 738 B
import { ListKeyManager, CanDisable } from './list-key-manager'; /** * This is the interface for highlightable items (used by the ActiveDescendantKeyManager). * Each item must know how to style itself as active or inactive and whether or not it is * currently disabled. */ export interface Highlightable extends CanDisable { setActiveStyles(): void; setInactiveStyles(): void; } export declare class ActiveDescendantKeyManager extends ListKeyManager<Highlightable> { /** * This method sets the active item to the item at the specified index. * It also adds active styles to the newly active item and removes active * styles from the previously active item. */ setActiveItem(index: number): void; }