@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
29 lines (26 loc) • 1.17 kB
text/typescript
import { IFPSWindowProps, IFPSSection, IFPSSectionStyle } from './FPSInterfaces';
import { createFPSWindowProps, initializeFPSSection, defWpInstanceID, initializeFPSPage, webpartInstance } from './FPSDocument';
//import { sendStandardConsole, sendFPSWindowConsole } from './console';
/**
* This will just send standard message to the console if it's needed
* @param consoleResult
* @param result
* @param section
*/
export function sendStandardConsole(consoleResult: boolean, result: string, section: IFPSSectionStyle ){
if ( consoleResult === true ) {//winFPS createWinProps
console.log(`winFPS setSecStyle ${result}: ${section.title}`, section);
}
}
/**
* This will just send standard message to the console if it's needed
* @param consoleResult
* @param result
* @param section
*/
export function sendFPSWindowConsole(consoleResult: boolean, result: string, FPSOptions: IFPSWindowProps ){
if ( consoleResult === true ) {
console.log(`winFPS sendFPSWinCon ${result}: FPSOptions`, FPSOptions);
console.log(`winFPS sendFPSWinCon ${result}: Window`, window );
}
}