Question

In the SharePoint Framework Yeoman generated HelloWorld WebPart instructions scroll down to :-

Switch back to HelloWorldWebPart.ts file.

Once you added your properties to the web part props, you can now access the property in the same way you accessed the description property earlier:

<p class="ms-font-l ms-fontColor-white">${this.properties.test2}</p>

we do not add <p class=.... for test, test1,test3

Is this missing ??

Était-ce utile?

La solution

The tutorials shows you how to access the properties and uses test2 as an example. You can however, try the rest. The tutorials focusses on key tasks one by one and move on so we can get to the next one.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top