@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
37 lines (36 loc) • 1.72 kB
TypeScript
import { ElementRef } from '@angular/core';
import { SmeResponsiveWindowManagerComponent } from '../../common/sme-responsive-window-manager.component';
/**
* The class for the settings window responsive manager
* The usage is bound to the sme-settings-page as all the settings page needs it.
*/
export declare class SettingsResponsiveWindowManager extends SmeResponsiveWindowManagerComponent {
readonly name = "sme-settings";
private smeLayoutClassList;
private smeSettingsPageContentClassList;
private smeSettingsPageClassList;
private smeCommonSettingContentClassList;
private smeLayoutItemContentClassList;
private readonly iframeHeightMappings;
/**
* Waits for the iframe to load and set iframe's height to avoid unexpected scroll bars.
* This will be triggered on layout changed or on selected settings changed.
*/
setIframeHeight(connectionSettings: boolean, hostElement: ElementRef): void;
/**
* The on window sized changed event handler for the common settings with iframe as content.
* @param connectionSettings whether it is connection settings page.
* @param smeCommonSettings the host element for the sme common settings.
* @returns void
*/
onWindowSizeChangedCommonSettings(connectionSettings: boolean, smeCommonSettings: ElementRef): void;
/**
* The on window sized changed event handler for the common settings in general.
* @param smeSettingsPage the sme settings page element.
* @returns void
*/
onWindowSizeChanged(smeSettingsPage: ElementRef): void;
private getLayoutItemAncestor;
private layoutItemStretchWidth;
private getSettingsContent;
}