You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,24 @@
4
4
"version": "3.16.0",
5
5
"changes": {
6
6
"new": [
7
+
"`ViewPicker`: new control ViewPicker [#1439](https://github.com/pnp/sp-dev-fx-controls-react/issues/1439)"
7
8
],
8
9
"enhancements": [
10
+
"`FieldCollectionData`: render on page instead of panel and added combobox and peoplepicker controls [#1588](https://github.com/pnp/sp-dev-fx-controls-react/pull/1588)"
9
11
],
10
12
"fixes": [
13
+
"`AccessibleAccordion`: fix typo in documentation [#1634](https://github.com/pnp/sp-dev-fx-controls-react/pull/1634)",
14
+
"`DynamicForm`: fix issue with MultiChoice field [#1510](https://github.com/pnp/sp-dev-fx-controls-react/issues/1510)",
Copy file name to clipboardExpand all lines: docs/documentation/docs/controls/AdaptiveCardDesignerHost.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,13 @@ Here is an example of the control in action inside a Web Part:
30
30
* Check that you installed the `@pnp/spfx-controls-react` dependency. Check out the [getting started](../../#getting-started) page for more information about installing the dependency.
31
31
32
32
* In your component file, import the `AdaptiveCardDesignerHost` control as follows:
| type | CustomCollectionFieldType | yes | Specifiesthetypeoffieldtorender. |
117
120
| disableEdit | boolean | no | Allowsyoutospecifyifafieldisdisabledforediting. |
118
121
| required | boolean | no | Specifyifthefieldisrequired. |
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. |
This control allows you to select available views from lists/libraries of the current site.
4
+
5
+
Here is an example of the control:
6
+
7
+

8
+
9
+
`ViewPicker` single selection mode:
10
+
11
+

12
+
13
+
`ViewPicker` multi selection mode:
14
+
15
+

16
+
17
+
18
+
## How to use this control in your solutions
19
+
20
+
- Check that you installed the `@pnp/spfx-controls-react` dependency. Check out the [getting started](../../#getting-started) page for more information about installing the dependency.
The `ViewPicker` control can be configured with the following properties
51
+
52
+
| Property | Type | Required | Description |
53
+
| ---- | ---- | ---- | ---- |
54
+
| context | BaseComponentContext | yes | The context object of the SPFx loaded webpart or customizer. |
55
+
| className | string | no | If provided, additional class name to provide on the dropdown element. |
56
+
| disabled | boolean | no | Whether or not the view picker control is disabled. |
57
+
| filter | string | no | Filter views from Odata query. |
58
+
| label | string | no | Label to use for the control. |
59
+
| listId | string | no | The List Id of the list. |
60
+
| placeholder | string | no | Placeholder label to show in the dropdown. |
61
+
| orderBy | Enum | no | How to order the set of views (By ID or Title). |
62
+
| selectedView | string OR string[]| no | Keys(View Ids) of the selected item(s). If you provide this, you must maintain selection state by observing onSelectionChanged events and passing a new value in when changed. |
63
+
| multiSelect | boolean | no | Optional mode indicates if multi-choice selections is allowed. Default to `false`. |
64
+
| showBlankOption | boolean | no | Whether or not to show a blank option. Default to `false`. |
65
+
| viewsToExclude | string[]| no | Defines view titles which should be excluded from the view picker control. |
66
+
| webAbsoulteUrl | string | no | Absolute Web Url of target site (user requires permissions) |
67
+
| onSelectionChanged | (newValue: string OR string[]): void | no | Callback function when the selected option changes. |
0 commit comments