28 lines
964 B
TypeScript
28 lines
964 B
TypeScript
import { BaseApplicationCustomizer } from '@microsoft/sp-application-base';
|
|
import './MegaMenu.module.scss';
|
|
export declare const UserCustomActionMegaMenuId: string;
|
|
/**
|
|
* Properties for the MegaMenu Application Customizer
|
|
*/
|
|
export interface IMegaMenuApplicationCustomizerProperties {
|
|
/**
|
|
* The name of the termset to load menu items from
|
|
*/
|
|
termSetName: string;
|
|
/**
|
|
* Optional URL to an external CSS file
|
|
*/
|
|
cssUrl?: string;
|
|
}
|
|
/** A Custom Action which can be run during execution of a Client Side Application */
|
|
export default class MegaMenuApplicationCustomizer extends BaseApplicationCustomizer<IMegaMenuApplicationCustomizerProperties> {
|
|
private _topPlaceholder;
|
|
onInit(): Promise<void>;
|
|
private _renderPlaceHolders();
|
|
private _updateCallback;
|
|
private _renderMegaMenu(termSetName);
|
|
private _getOrCreateContainer(id, placeholder);
|
|
private _loadExternalCss(cssUrl);
|
|
private _onDispose();
|
|
}
|