SPFx webpart method execution order: When loading the web part on a page, the methods are fired in the following order: 1) protected onAfterDeserialize(deserializedObject: any , dataVersion: Version): TProperties; 2) protected onInit(): Promise < void >; 3) protected render(): void ; 4) protected onBeforeSerialize(): void ; When the web part is removed from a page, the methods are fired in the following order: 1) protected onDispose(): void ; SPFx webpart property pane method execution order: Opening the property pane: 1) protected loadPropertyPaneResources(): Promise < void > 2) protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration; 3) protected onPropertyPaneRendered(): void ; 4) protected onPropertyPaneConfigurationStart(): void ; Updating the properties in the property pane: The SPFx property pane can be set in either the reactive mode or in a non-reactive mode: "Reactive implies th...
SharePoint Site Collection Permission The "sites.selected" permission in Microsoft Graph API allows you to grant an application access to specific SharePoint sites instead of all SharePoint sites in the tenant. Step1: To Configure "Sites.Selected" Permission in Azure App Registration To use "sites.selected" , you need to: Register an App in Azure AD . Grant "Sites.Selected" Permission to the app. Manually Grant Access to the specific SharePoint site. Use Microsoft Graph API or PowerShell to assign the required role (Read/Write). Step 1: Register an App in Azure AD Go to Azure Portal → Azure Active Directory → App Registrations . Click New registration . Provide a name (e.g., SharePointAccessApp). Choose Accounts in this organizational directory only . Click Register . Step 2: Add "Sites.Selected" API Permission Navigate ...
Setting up SharePoint Framework (SPFx) for SharePoint Online involves several steps. Below is a guide to help you set up SharePoint Framework for SharePoint Online compatibility: Note: please refer below link to get latest update https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment Prerequisites: Node.js and npm: Ensure you have Node.js installed. You can download it from nodejs.org . spfx support version => node-v18.17.1-x64 npm and yomen -> >npm install -g yo gulp >npm install -g @microsoft/generator-sharepoint SPFx generally works with the LTS (Long-Term Support) version of Node.js. Yeoman and Gulp: Install Yeoman and Gulp globally using npm. bash Copy code npm install -g yo gulp SharePoint Online Tenant Configuration: Developer Site: Create a developer site collection in your SharePoint Online tenant. This site collection is used for testing your SPFx web parts. App Catalog: Create an App Catalog site collection in your SharePo...
Comments
Post a Comment