All About Web Part Properties — Introduction to SharePoint Framework
Автор: SharePoint and SPFx
Загружено: 2023-05-29
Просмотров: 138
Описание:
Understanding how to best use web part properties is an essential skill in developing great SharePoint Framework web parts. In this lesson, we’ll take a tour of the standard web part property controls available in SharePoint Framework web parts, as well as an external library of controls we can easily import into our solution.
🚨 Important Update
In the latest version of SharePoint Framework and React, you may encounter an issue when applying the headerAlignment as a textAlign CSS property as shown in this lesson. The textAlign property can no longer be assigned as type string, but rather now requires type TextAlignProperty. You can fix this issue by changing your code as follows:
import { TextAlignProperty } from 'csstype';
// ...
header style={{ textAlign: this.props.headerAlignment as TextAlignProperty }}
@microsoft/sp-webpart-base: https://learn.microsoft.com/en-us/javascri...
@pnp/spfx-property-controls: https://pnp.github.io/sp-dev-fx-property-c...
Property Architecture Diagram: https://learn.microsoft.com/en-us/sharepoi...
Property Value Types: https://learn.microsoft.com/en-us/sharepoi...
Property Validation: https://learn.microsoft.com/en-us/sharepoi...
Lesson Source Code: https://github.com/himanshu28chavan/Dash
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: