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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@
12
12
"`TreeView`: Expand to selected [#559](https://github.com/pnp/sp-dev-fx-controls-react/issues/559)",
13
13
"`DateTimePicker`: When using the datetimePicker I would like to have an opportunity to set maximum/minimum date like in Office UI Fabric [#497](https://github.com/pnp/sp-dev-fx-controls-react/issues/497)",
14
14
"`TaxonomyPicker`: Added the `selectTerm`, `hideTerm`, and `disableTerm` actions [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)",
15
-
"`TaxonomyPicker`: Added the functionality to enable/disable term actions on the fly [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)"
15
+
"`TaxonomyPicker`: Added the functionality to enable/disable term actions on the fly [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)",
16
+
"`Carousel`: indicators, slide animation, auto cycling, easier basic usage [#587](https://github.com/pnp/sp-dev-fx-controls-react/pull/587)"
16
17
],
17
18
"fixes": [
18
19
"`TaxonomyPicker`: Correct the AnchorID getting all TermSet search options [#150](https://github.com/pnp/sp-dev-fx-controls-react/issues/150)",
The Carousel component can be configured with the following properties:
@@ -71,6 +119,16 @@ The Carousel component can be configured with the following properties:
71
119
| loadingComponent | JSX.Element | no | Allows to inject custom component when the carousel is in processing state. If not provided, Spinner is displayed. |
72
120
| onMoveNextClicked | (currentIndex: number) => void | no | Callback function called after the next item button is clicked. Not used when triggerPageEvent is specified. |
73
121
| onMovePrevClicked | (currentIndex: number) => void | no | Callback function called after the previous item button is clicked. Not used when triggerPageEvent is specified. |
122
+
| elementsCount | number | no | In case triggerPageEvent is in use, provides total number of slides in the carousel. |
123
+
| onSelect | (selectedIndex: number) => void | no | Callback function called when element has been selected in the carousel |
124
+
| slide | boolean | no | Enables animation on the Carousel as it transitions between slides. This property is ignored if triggerPageEvent is in use. |
125
+
| interval | number \| null | no | The amount of time to delay between automatically cycling an item. If null, carousel will not automatically cycle. |
126
+
| pauseOnHover | boolean | no | Specifies if slides cycling should pause when hovering over the content (touchStart on touch devices). |
127
+
| indicators | boolean | no | Specifies if set of slide position indicators is shown. |
128
+
| indicatorShape | CarouselIndicatorShape | no | Specifies indicators' shape. If onRenderIndicator is provided - this property is ignored |
129
+
| indicatorClassName | string | no | Specifies additional class applied to slide position indicators |
130
+
| indicatorStyle | React.CSSProperties | no | Specifies additional styles applied to slide position indicators |
131
+
| onRenderIndicator | (index: number, onClick: (e: React.MouseEvent<HTMLElement>| React.TouchEvent<HTMLElement>, selectedIndex: number) => void) => JSX.Element | no | Function to render indicator element |
| buttonsOnly | Only icon buttons are displayed. |
93
151
| hidden | Buttons are not displayed. They appear onhover event. |
94
152
153
+
enum `CarouselIndicatorShape`
154
+
155
+
Provides options for carousel indicators' shape.
156
+
157
+
| Value | Description |
158
+
| ---- | ---- |
159
+
| circle | Indicators displayed as cirlces |
160
+
| square | Indicators displayed as squares |
161
+
| rectangle | Indicators displayed as rectangles |
162
+
163
+
Interface `ICarouselImageProps`
164
+
165
+
Allows to easily render a set of `CarouselImage` components in the carousel
166
+
| Property | Type | Required | Description |
167
+
| ---- | ---- | ---- | ---- |
168
+
| imageSrc | string | yes | Image source |
169
+
| imageFit | ImageFit | no | Specifies the method to be used to fit image. Default: `ImageFit.none`. See [Fluent UI Image](https://developer.microsoft.com/en-us/fluentui#/controls/web/image#implementation)|
170
+
| url | string | no | URL to be opened when clicking on details |
171
+
| title | string | no | Title to display in details |
172
+
| description | string \| JSX.Element | no | Description to show in details. Can be either a string (text) or JSX.Element to show HTML. |
173
+
| target | "_blank" \| "_self" | no | Target of the URL to open. Default `"_blank"`|
174
+
| showDetailsOnHover | boolean | no | Specifies if the details are shown on hover or constantly |
175
+
| className | string | no | Class to apply to the component |
176
+
| style | React.CSSProperties | no | Styles to apply to the component |
177
+
| imgClassName | string | no | Class to apply to the image control |
178
+
| imgStyle | React.CSSProperties | no | Styles to apply to the image control |
179
+
| detailsClassName | string | no | Class to apply to the details control |
180
+
| detailsStyle | React.CSSProperties | no | Styles to apply to the details control |
181
+
| titleClassName | string | no | Class to apply to the title control |
182
+
| titleStyle | React.CSSProperties | no | Styles to apply to the title control |
183
+
| descriptionClassName | string | no | Class to apply to the description control |
184
+
| descriptionStyle | React.CSSProperties | no | Styles to apply to the description control |
0 commit comments