-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from SharePoint/dev
Prepare 1.12.0 release
- Loading branch information
Showing
65 changed files
with
2,241 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# IFramePanel control | ||
|
||
This control renders a Panel with an iframe as content. | ||
|
||
Here is an example of the control in action: | ||
|
||
![IFrameDialog control](../assets/IFramePanel.png) | ||
|
||
## How to use this control in your solutions | ||
|
||
- 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. | ||
- Import the following modules to your component: | ||
|
||
```TypeScript | ||
import { IFramePanel } from "@pnp/spfx-controls-react/lib/IFramePanel"; | ||
``` | ||
|
||
- The `IFramePanel` uses the [Office Fabric UI implemenation of the panel](https://developer.microsoft.com/en-us/fabric#/components/panel). The properties of this control inherit the panel properties. | ||
|
||
- Use the `IFramePanel` control in your code as follows (`this._onIframeLoaded` and `this._onDismiss` are methods that should be implemented if you want to execute some actions when the iframe content is loaded and dialog should be closed respectively.) | ||
|
||
|
||
```TypeScript | ||
<IFramePanel url={this.state.iFrameUrl} | ||
type={PanelType.medium} | ||
headerText="Panel Title" | ||
closeButtonAriaLabel="Close" | ||
isOpen={this.state.iFramePanelOpened} | ||
onDismiss={this._onDismiss.bind(this)} | ||
iframeOnLoad={this._onIframeLoaded.bind(this)} /> | ||
``` | ||
|
||
## Implementation | ||
|
||
The IFramePanel component extends the properties from the [Fabric UI IPanelProps](https://developer.microsoft.com/en-us/fabric#/components/panel) | ||
along with the additional following properties: | ||
|
||
| Property | Type | Required | Description | | ||
| ---- | ---- | ---- | ---- | | ||
| url | string | yes | iframe Url | | ||
| heigth | string | yes | iframe's height, if empty it will be dynamically set to the full height available in the panel's content area | | ||
| iframeOnload | iframeOnLoad?: (iframe: any) => {} | no | iframe's onload event handler | | ||
| name | string | no | Specifies the name of an iframe | | ||
| allowFullScreen | boolean | no | Specifies if iframe content can be displayed in a full screen | | ||
| allowTransparency | boolean | no | Specifies if transparency is allowed in iframe | | ||
| sandbox | string | no | Enables an extra set of restrictions for the content in an iframe | | ||
| scrolling | string | no | Specifies whether or not to display scrollbars in an iframe | | ||
| seamless | string | no | When present, it specifies that the iframe should look like it is a part of the containing document (no borders or scrollbars) | | ||
|
||
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/IFramePanel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ListItemAttachments control | ||
|
||
This control allows you to manage list item attachments, you can add or delete associated attachments. The attachments are listed in tile view. | ||
|
||
Here is an example of the control: | ||
|
||
![ListItemAttachments Upload](../assets/ListItemAttachmentsUpload.png) | ||
|
||
![ListItemAttachments Tiles](../assets/ListItemAttachmentsTitles.png) | ||
|
||
![ListItemAttachments Confirm Delete](../assets/ListItemAttachmentDeleteConfirm.png) | ||
|
||
![ListItemAttachments Attachment Deleted ](../assets/ListItemAttachementDeletedMsg.png) | ||
|
||
## How to use this control in your solutions | ||
|
||
- 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. | ||
- Import the control into your component: | ||
|
||
```TypeScript | ||
import { ListItemAttachments } from '@pnp/spfx-controls-react/listItemAttachments'; | ||
``` | ||
- Use the `ListItemAttachments` control in your code as follows: | ||
|
||
```TypeScript | ||
<ListItemAttachments listId='dfa283f4-5faf-4d54-b6b8-5bcaf2725af5' | ||
itemId={1} | ||
context={this.props.context} | ||
disabled={false} /> | ||
``` | ||
|
||
## Implementation | ||
|
||
The `ListItemAttachments` control can be configured with the following properties: | ||
|
||
|
||
| Property | Type | Required | Description | | ||
| ---- | ---- | ---- | ---- | | ||
| context | WebPartContext \| ApplicationCustomizerContext | yes | SPFx web part or extention context | | ||
| itemId | number | yes | List Item Id | | ||
| listId | string | yes | Guid of the list. | | ||
| webUrl | string | no | URL of the site. By default it uses the current site URL. | | ||
| disabled | boolean | no | Specifies if the control is disabled or not. | | ||
|
||
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/ListItemAttachments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './controls/iFramePanel/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './controls/listItemAttachments'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const version: string = "1.11.0"; | ||
export const version: string = "1.12.0"; |
Oops, something went wrong.