UNPKG

gd-sprest-js

Version:

SharePoint 2013/Online js components.

32 lines (31 loc) 792 B
import { IProps } from "."; /** * Pivot */ export interface IPivotProps extends IProps { /** True to render the tabs under the content. */ isFlipped?: boolean; /** True to render text. */ isLarge?: boolean; /** True to render tabs. */ isTabs?: boolean; /** The click event for a tab. */ onClick?: (el?: HTMLElement, tab?: IPivotLink) => void; /** The tabs. */ tabs: Array<IPivotLink>; } /** * Pivot Link */ export interface IPivotLink { /** The class name. */ className?: string; /** The tab content. */ content?: string; /** True for the selected tabs. */ isSelected?: boolean; /** The tab name. */ name: string; /** The click event for the tab. */ onClick?: (el?: HTMLElement, tab?: IPivotLink) => void; }