Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp webpart base.iwebpartdata.dynamicdatapaths

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-webpart-base > IWebPartData > dynamicDataPaths

IWebPartData.dynamicDataPaths property

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Paths for the dynamic data.

Signature:

dynamicDataPaths?: {
        [path: string]: string;
    };

Remarks

This is used to reconstruct the dynamic data objects when deserializing the web part. The key is the path within the web part properties, and the value is the dynamic data internal id.

Example:

{
  'pageContextUser':
    'PageContext:user',
  'anotherWebPartProperty':
    'WebPart.c3be45f2-7cd9-4e92-9c6c-a01d24dc04cf.3d6307e4-c8e1-4b2d-bef9-f1689c6eb7ea:aProperty'
}

Clone this wiki locally