gd-sprest-js
Version:
SharePoint 2013/Online js components.
36 lines (35 loc) • 998 B
TypeScript
import { Fabric, IContextualMenuProps, IProps } from ".";
/**
* Command Button
*/
export interface ICommandButton {
/** Returns the fabric component. */
get(): Fabric.ICommandButton;
}
/**
* Command Button Properties
*/
export interface ICommandButtonProps extends IProps {
/** The button icon. */
icon?: string;
/** True for action command buttons. */
isAction?: boolean;
/** True for active command buttons. */
isActive?: boolean;
/** True to disable the button. */
isDisabled?: boolean;
/** True for inline command buttons. */
isInline?: boolean;
/** True for pivot command buttons. */
isPivot?: boolean;
/** True for split command buttons. */
isSplit?: boolean;
/** True for text only command buttons. */
isTextOnly?: boolean;
/** The contextual menu. */
menu?: IContextualMenuProps;
/** The click event. */
onClick?: (btn?: HTMLButtonElement) => void;
/** The button text. */
text?: string;
}