office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
42 lines (41 loc) • 1.33 kB
TypeScript
/// <reference types="react" />
import { BaseComponent } from '../../Utilities';
import { ICommandBar, ICommandBarItemProps, ICommandBarProps } from './CommandBar.types';
export interface ICommandBarData {
/**
* Items being rendered in the primary region
*/
primaryItems: ICommandBarItemProps[];
/**
* Items being rendered in the overflow
*/
overflowItems: ICommandBarItemProps[];
/**
* Items being rendered on the far side
*/
farItems: ICommandBarItemProps[] | undefined;
/**
* Length of original overflowItems to ensure that they are not moved into primary region on resize
*/
minimumOverflowItems: number;
/**
* Unique string used to cache the width of the command bar
*/
cacheKey: string;
}
export declare class CommandBarBase extends BaseComponent<ICommandBarProps, {}> implements ICommandBar {
static defaultProps: ICommandBarProps;
private _overflowSet;
private _resizeGroup;
private _classNames;
render(): JSX.Element;
focus(): void;
remeasure(): void;
private _onRenderData;
private _onRenderItem;
private _onButtonClick(item);
private _onRenderOverflowButton;
private _computeCacheKey(data);
private _onReduceData;
private _onGrowData;
}