import { IDataContext } from "../../models/dataSources/IDataContext"; export interface ILayout { /** * The Web Part properties in the property bag. Corresponds to the isolated 'layoutProperties' property in the global property bag. */ properties: any; /** * Context of the main Web Part */ context: any; /** * Check if web part is in display or edit mode */ editMode: boolean; /** * Method called during the Web Part initialization. */ onInit(): void | Promise; /** * Returns the layout property pane option fields if any * A good practice is to prefix property pane properties by the layout name like PropertyPaneTextField('customLayout.myTextProperty', {...})} * @param availableFields the available fields coming from results * @param dataContext the current data source data context */ getPropertyPaneFieldsConfiguration(availableFields: string[], dataContext?: IDataContext): any[]; /** * Method called when a property pane field in changed in the Web Part * @param propertyPath the property path * @param oldValue the old value * @param newValue the new value */ onPropertyUpdate(propertyPath: string, oldValue: any, newValue: any): void; } //# sourceMappingURL=ILayout.d.ts.map