@pnp/spfx-property-controls
Version:
Reusable property pane controls for SharePoint Framework solutions
41 lines • 1.12 kB
TypeScript
/**
* Used to display a placeholder in case of no or temporary content. Button is optional.
*
*/
export interface IPlaceholderProps {
/**
* Text description for the placeholder. Appears bellow the Icon and IconText.
*/
description: string;
/**
* Icon name used for the className from the MDL2 set. Example: 'Add'.
*/
iconName: string;
/**
* Heading displayed against the Icon.
*/
iconText: string;
/**
* Text label to be displayed on button below the description.
* Optional: As the button is optional.
*/
buttonLabel?: string;
/**
* This className is applied to the root element of content. Use this to
* apply custom styles to the placeholder.
*/
contentClassName?: string;
/**
* Specify if you want to hide the config button
*/
hideButton?: boolean;
/**
* onConfigure handler for the button.
* Optional: As the button is optional.
*/
onConfigure?: () => void;
}
export interface IPlaceholderState {
width: number;
}
//# sourceMappingURL=IPlaceholderComponent.d.ts.map