UNPKG

@microsoft/mgt

Version:
58 lines (57 loc) 2.16 kB
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { LitElement, PropertyValues } from 'lit-element'; /** * A component to create flyout anchored to an element * * @export * @class MgtFlyout * @extends {LitElement} */ export declare class MgtFlyout extends LitElement { /** * Array of styles to apply to the element. The styles should be defined * using the `css` tag function. */ static get styles(): import("lit-element").CSSResult[]; /** * Gets or sets whether the flyout is visible * * @type {string} * @memberof MgtComponent */ isOpen: boolean; private renderedOnce; /** * Invoked when the element is first updated. Implement to perform one time * work on the element after update. * * Setting properties inside this method will trigger the element to update * again after this update cycle completes. * * * @param _changedProperties Map of changed properties with old values */ firstUpdated(): void; /** * Invoked whenever the element is updated. Implement to perform * post-updating tasks via DOM APIs, for example, focusing an element. * * Setting properties inside this method will trigger the element to update * again after this update cycle completes. * * * @param changedProperties Map of changed properties with old values */ protected updated(changedProps: PropertyValues): void; /** * Invoked on each update to perform rendering tasks. This method must return * a lit-html TemplateResult. Setting properties inside this method will *not* * trigger the element to update. */ protected render(): import("lit-element").TemplateResult; private renderFlyout; private updateFlyout; }