Skip to content

Commit 55e88b6

Browse files
committed
Documentation update
1 parent dd97d56 commit 55e88b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/documentation/docs/controls/fields/FieldLookupRenderer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { FieldLookupRenderer } from "@pnp/spfx-controls-react/lib/FieldLookupRen
2222
- Use the `FieldLookupRenderer` control in your code as follows:
2323

2424
```TypeScript
25-
<FieldLookupRenderer lookups={event.fieldValue} dispFormUrl={'https://contoso.sharepoint.com/_layouts/15/listform.aspx?PageType=4&ListId={list_id}'} className={'some-class'} cssProps={{ background: '#f00' }} />
25+
<FieldLookupRenderer lookups={event.fieldValue} fieldId={'<field-guid>'} context={this.context} className={'some-class'} cssProps={{ background: '#f00' }} />
2626
```
2727

2828
## Implementation
@@ -36,6 +36,8 @@ The FieldLookupRenderer component can be configured with the following propertie
3636
| lookups | ISPFieldLookupValue[] | yes | Lookup field values. |
3737
| dispFormUrl | boolean | no | Url of Display form for the list that is referenced by the lookup. |
3838
| onClick | (args: ILookupClickEventArgs) => {} | no | Custom event handler of lookup item click. If not set the dialog with Display Form will be shown. |
39+
| fieldId | string | Field's id |
40+
| context | IContext | Customizer context. Must be providede if fieldId is set |
3941

4042
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/fields/FieldLookupRenderer)
4143

0 commit comments

Comments
 (0)