UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

34 lines 1.52 kB
import { IMinHeadingStyleProps, IFPSHeadingClass } from './Interfaces'; import { IRegExTag } from '../Tags/Interfaces'; /** * Processes web part prop heading props and preps to update h2, h3, h4 tag styles. NOTE SharePoint does not have h1 on the page. * @param wpProps */ export declare function applyHeadingCSS(wpProps: IMinHeadingStyleProps): void; /** * Takes a web part property string and breaks it into classes and raw css and then applies it to tags. * @param tagStyle * @param regTag * @returns */ export declare function runStyleOnTags(tagStyle: string, regTag: IRegExTag): void; /** * adds table classes to canvas Tables and updates cell styling * @param tabelTdStyle */ export declare function addTableStyles(tabelTdStyle: string): void; export interface IFPSClassesAndStyles { classes: IFPSHeadingClass[]; cssStyles: string[]; } export declare function getClassStyles(tagStyle: string): IFPSClassesAndStyles; /** * This actually Applies CSS to html page headings h2, h3, h4 per web part props. NOTE SharePoint does not have h1 on the page. * @param applyTag * @param applyClass * @param alertError * @param consoleResult */ export declare function FPSApplyHeadingCSS(applyTag: IRegExTag, applyClass: IFPSHeadingClass[], alertError?: boolean, consoleResult?: boolean): void; export declare function FPSApplyHeadingStyle(applyTag: IRegExTag, cssText: string, alertError?: boolean, consoleResult?: boolean): void; //# sourceMappingURL=functions.d.ts.map