@@ -96,7 +96,7 @@ The `FieldCollectionData` control can be configured with the following propertie
96
96
| saveAndAddBtnLabel | string | yes | Label of the save and add button . | |
97
97
| cancelBtnLabel | string | yes | Label of the cancel button . | |
98
98
| fields | ICustomCollectionField [] | yes | The fields to be used for the list of collection data . | |
99
- | value | string | yes | The collection data value . | |
99
+ | value | any [] | yes | The collection data value . | |
100
100
| enableSorting | boolean | no | Specify if you want to be able to sort the items in the collection . | false |
101
101
| disabled | boolean | no | Specify if the control is disabled . | false |
102
102
| disableItemCreation | boolean | no | Allows you to specify if user can create new items . | false |
@@ -106,6 +106,9 @@ The `FieldCollectionData` control can be configured with the following propertie
106
106
| itemsPerPage | number | no | Allows you to specify the amount of items displayed per page . Paging control is added automatically . | |
107
107
| executeFiltering | (searchFilter : string , item : any ) => boolean | no | Allows you to show Search Box and specify own filtering logic . | |
108
108
| panelProps | IPanelProps | no | Allows you to pass in props of the panel such as type and customWidth to control the underlying panel . | |
109
+ | context | BaseComponentContext | no | Needed if **peoplepicker ** field type is used | |
110
+ | usePanel | boolean | no | Specify if you want the control to opened in a panel or directly on the page (only useful within webpart ) | true |
111
+ | noDataMessage | string | no | Specify the message when no items are added to the collection ||
109
112
110
113
Interface `ICustomCollectionField `
111
114
@@ -116,13 +119,18 @@ Interface `ICustomCollectionField`
116
119
| type | CustomCollectionFieldType | yes | Specifies the type of field to render . |
117
120
| disableEdit | boolean | no | Allows you to specify if a field is disabled for editing . |
118
121
| required | boolean | no | Specify if the field is required . |
119
- | options | [IDropdownOption []](https :// developer.microsoft.com/en-us/fabric#/components/dropdown) | no | Dropdown options. Only necessary when dropdown type is used. |
122
+ | options | [IDropdownOption []](https :// developer.microsoft.com/en-us/fabric#/components/dropdown) [IComboboxOption[]](https://developer.microsoft.com/en-us/fluentui#/controls/web/combobox) | no | Dropdown options. Only necessary when dropdown or combobox type is used. |
120
123
| onRenderOption | IRenderFunction <ISelectableOption > | no | Dropdown custom options render method . Only for the **dropdown ** field type . |
121
124
| placeholder | string | no | Placehoder text which will be used for the input field . If not provided the input title will be used . |
122
125
| defaultValue | any | no | Specify a default value for the input field . |
123
126
| deferredValidationTime | number | no | Field will start to validate after users stop typing for `deferredValidationTime ` milliseconds . Default : 200ms . |
124
127
| onGetErrorMessage | (value : any , index : number , crntItem : any ): string \| Promise <string > | no | The method is used to get the validation error message and determine whether the input value is valid or not . It provides you the current row index and the item you are currently editing . |
125
128
| onCustomRender | (field : ICustomCollectionField , value : any , onUpdate : (fieldId : string , value : any ) => void , item : any , itemUniqueId : string , onCustomFieldValidation : (fieldId : string , errorMessage : string ) => void ) => JSX .Element | no | This property is only required if you are using the `custom ` field type and it can be used to specify the custom rendering of your control in the collection data . |
129
+ | multiSelect | boolean | no | Specifies multiple options can be selected (**combobox **) or mutliple users can be selected (**peoplepicker **) |
130
+ | allowFreeform | boolean | no | Specifies that own options can be entered . Only for **combobox ** field type |
131
+ | minimumUsers | number | no | Specifies the minimum number of users to be entered for **peoplepicker ** field type |
132
+ | minimumUsersMessage | string | no | Specifies the message to be displayed if minimumUsers are not entered for **peoplepicker ** field type |
133
+ | maximumUsers | number | no | Specifies the maximum number of users to be entered for **peoplepicker ** field type |
126
134
127
135
Enum `CustomCollectionFieldType `
128
136
@@ -132,8 +140,10 @@ Enum `CustomCollectionFieldType`
132
140
| number | Number field |
133
141
| boolean | Checkbox |
134
142
| dropdown | Dropdown field . You will have to specify the `options ` property when using this field type |
143
+ | combobox | Combobox field . You wil have to specify the `options ` property , optional specify `allowFreeform ` and `multiSelect ` |
135
144
| fabricIcon | Name of the [Office UI Fabric icon ](https :// developer.microsoft.com/en-us/fabric#/styles/icons) |
136
145
| url | URL field |
146
+ | peoplepicker | Peoplepicker control |
137
147
| custom | This gives you control over the whole field rendering . Be sure to provide the `onCustomRender ` method to render your control in the collection data . |
138
148
139
149

0 commit comments