gd-sprest-js
Version:
SharePoint 2013/Online js components.
24 lines (23 loc) • 566 B
TypeScript
import { Fabric, IComponentProps } from ".";
/**
* Toggle
*/
export interface IToggle {
/** Returns the toggle element. */
get(): HTMLElement;
/** Returns the fabric component. */
getFabricComponent(): Fabric.IToggle;
/** Returns the toggle value. */
getValue(): boolean;
}
/**
* Toggle Properties
*/
export interface IToggleProps extends IComponentProps {
/** The toggle description. */
description?: string;
/** The change event */
onChange?: (value: boolean) => void;
/** The toggle value */
value?: boolean;
}