@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
25 lines (24 loc) • 1.26 kB
TypeScript
import { IFPSSection, IFPSSectionStyle, IFPSPage } from './FPSInterfaces';
/**
* The purpose of this file is to establish a node in the dom to store all current page variables that can easily be seen and updated by any FPS Webpart
*/
export declare function webpartInstance(str: string): string;
/**
* Creates default pageStyles object for window.FPSOptions
*/
export declare function initializeFPSPage(wpInstanceID: any, doThis: boolean | null, fpsPageStyle: string | null, fpsPageArray: any[]): IFPSPage;
export declare function initializeFPSSection(wpInstanceID: any, maxWidth?: any, marginTB?: any): IFPSSection;
/**
* initializeToolbar usage:
* initializeToolbar( 'Hide Toolbar', wpInstanceID, 'display', this.properties.togglevalue )
* @param title
* @param wpInstanceID
* @param cssProp
* @param value
*/
export declare function initializeMinimalStyle(title: string, wpInstanceID: any, cssProp: string, value?: any): IFPSSectionStyle;
export declare const defWpInstanceID = "window";
export declare const defHideHeaderTitle = "Hide Page Header";
export declare const defHideQuicklaunchTitle = "Hide Quick Launch";
export declare const defToolBarTitle = "Hide Toolbar";
export declare function createFPSWindowProps(): any;