useSharePointDataForm
@spartanfx/react / spfx / useSharePointDataForm
Function: useSharePointDataForm()
Call Signature
function useSharePointDataForm(): UseSharePointDataFormReturn;
SPFx SharePoint adapter hook for DataForm.
Returns
Call Signature
function useSharePointDataForm(config): UseSharePointDataFormReturn;
SPFx SharePoint adapter hook for DataForm.
Parameters
config
Returns
Configuration
Required
| Property | Type | Description |
|---|---|---|
sp | SPFI | - |
Options
| Property | Type | Description |
|---|---|---|
autoRefresh? | boolean | - |
context? | WebPartContext | - |
disabled? | boolean | - |
fieldInternalNames? | string[] | - |
folderPath? | string | - |
includeHiddenFields? | boolean | - |
initialItem? | Record<string, unknown> | - |
itemId? | number | - |
labelOverrides? | Record<string, string> | - |
listId? | string | - |
listName? | string | - |
mode? | DataFormMode | - |
readonly? | boolean | - |
Events & callbacks
Full type reference:
IUseSharePointDataFormConfig