Skip to content

Commit 4f17bb7

Browse files
committed
updating
1 parent 270e5f7 commit 4f17bb7

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

powerapps-docs/developer/component-framework/sample-controls/angular-flip-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ author: Nkrb
1414

1515
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1616

17-
This sample shows how to use third-party libraries to create controls in PowerApps component framework. The flip sample component is implemented based on angular.js, angular-ui, angular-animate, angular-sanitize, bootstrap. The code may not reveal the best practices for the mentioned third-party libraries.
17+
This sample shows how to use third-party libraries to create components in PowerApps component framework. The flip sample component is implemented based on angular.js, angular-ui, angular-animate, angular-sanitize, bootstrap. The code may not reveal the best practices for the mentioned third-party libraries.
1818

1919
> [!div class="mx-imgBorder"]
2020
> ![Angular Flip](../media/angular-flip.png "Angular Flip")

powerapps-docs/developer/component-framework/sample-controls/control-state-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ms.assetid: 4a77bf37-8ea0-4fe3-9fe7-2769387167c3
1717

1818
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1919

20-
The PowerApps component framework allows you to persist state of component across multiple renderings of the component within the same session. It provides you with the ability to build controls that can maintain user state throughout the user's session as the user navigates to and from the component.
20+
The PowerApps component framework allows you to persist state of component across multiple renderings of the component within the same session. It provides you with the ability to build components that can maintain user state throughout the user's session as the user navigates to and from the component.
2121

22-
For example, if your custom component is a long list that the user can scroll through, you could leverage the ***SetControlState*** functionality to remember the point in the list the user is looking at when they navigated away from the form. You could then add logic on component initialization to check the stored state and render the component's list at the point where the user was previously reading.
22+
For example, if your code component is a long list that the user can scroll through, you could leverage the ***SetControlState*** functionality to remember the point in the list the user is looking at when they navigated away from the form. You could then add logic on component initialization to check the stored state and render the component's list at the point where the user was previously reading.
2323

2424
> [!div class="mx-imgBorder"]
2525
> ![Control state API](../media/control-state-api.png "Control state API")

powerapps-docs/developer/component-framework/sample-controls/data-set-grid-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.assetid: 356561d0-a36b-4b93-8b76-3e1abf9414e9
1717

1818
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1919

20-
This sample component shows how to change the user experience of interacting with the dataset. For example, you only see the home page grid on an entity homepage as a table. You can build your custom component that can display the data as per your choice. This sample shows the records as tiles instead of the regular tabular grid.
20+
This sample component shows how to change the user experience of interacting with the dataset. For example, you only see the home page grid on an entity homepage as a table. You can build your code component that can display the data as per your choice. This sample shows the records as tiles instead of the regular tabular grid.
2121

2222
> [!div class="mx-imgBorder"]
2323
> ![Data Set Grid component](../media/data-set-grid.png "Data Set Grid component")

powerapps-docs/developer/component-framework/sample-controls/iframe-control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ author: Nkrb
1313

1414
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1515

16-
This sample describes how to bind a custom component to different fields on the form and use the value of these fields as input properties to the component.
16+
This sample describes how to bind a code component to different fields on the form and use the value of these fields as input properties to the component.
1717

1818
> [!div class="mx-imgBorder"]
1919
> ![IFRAME component](../media/iframe-control.png "IFRAME component")
@@ -146,7 +146,7 @@ public destroy()
146146
```
147147

148148
> [!NOTE]
149-
> PowerApps component framework does not yet support composite fields, so you will not be able to bind this component to the out of the box latitude and longitude address fields. You need to bind the custom component to a different floating-point field.
149+
> PowerApps component framework does not yet support composite fields, so you will not be able to bind this component to the out of the box latitude and longitude address fields. You need to bind the code component to a different floating-point field.
150150
151151
This sample component renders an `IFRAME` which displays `Bing Maps URL`. The component is bound to two floating point fields on the form, which are passed as parameters to the component and injected into the `IFRAME URL` to update the Bing Map to the latitude and longitude of the provided inputs.
152152

@@ -172,7 +172,7 @@ Additional bound properties may be required or not. This will be enforced during
172172

173173
The initial rendering generates an `IFRAME` element and appends it to the controls container. This `IFRAME` is used to display the **Bing Map**. The url of the `IFRAME` is set to a `Bing Map URL` and includes the bound fields (latitudeValue and longitudeValue) in the url to center the map at the provided ___location.
174174

175-
The [updateView](../reference/control/updateview.md) method is invoked whenever one of these fields are updated on the form. This method updates the url of the **Bing Map** IFRAME to use the new latitude and longitude values passed to the component. To view this component in run time, bind the component to a field on the form like any other custom component.
175+
The [updateView](../reference/control/updateview.md) method is invoked whenever one of these fields are updated on the form. This method updates the url of the **Bing Map** IFRAME to use the new latitude and longitude values passed to the component. To view this component in run time, bind the component to a field on the form like any other code component.
176176

177177
### Related topics
178178

powerapps-docs/developer/component-framework/sample-controls/linear-input-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ author: Nkrb
1616

1717
This sample component changes the user experience of interacting with numeric types on the form. Instead of keying in the numbers, the linear input component provides a linear slider using which the value of the attribute can be set on the form.
1818

19-
To implement this component, first you need to define the [Manifest](../manifest-schema-reference/manifest.md)file, and them implement the custom logic in TypeScript
19+
To implement this component, first you need to define the [Manifest](../manifest-schema-reference/manifest.md) file, and them implement the custom logic in TypeScript
2020

2121
> [!div class="mx-imgBorder"]
2222
> ![Linear Input Concomponenttrol](../media/linear-input-control.png "Linear Input component")

powerapps-docs/developer/component-framework/sample-controls/react-facepile-control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.reviewer: nkrb
1515

1616
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1717

18-
This sample shows how to use React to create controls using PowerApps component framework. The facepile sample component is implemented based on React and the Office UI Fabric React components. The code may not reveal the best practices for the mentioned third-party libraries.
18+
This sample shows how to use React to create components using PowerApps component framework. The facepile sample component is implemented based on React and the Office UI Fabric React components. The code may not reveal the best practices for the mentioned third-party libraries.
1919

2020
> [!div class="mx-imgBorder"]
2121
> ![React Facepile](../media/react-facepile.png "React Facepile")
@@ -26,7 +26,7 @@ Model-driven apps and canvas apps (experimental preview)
2626

2727

2828
> [!IMPORTANT]
29-
> Although the PowerApps host applications work on top of React, the version of React you bundle will not communicate with the host version, nor is it dependent on that version. A new copy of React (or any third-party library you bundle with your control) will be loaded into the host page for every instance of that control, so be mindful of how large you are making your page(s) as you add controls. We will have a solution to this issue in a future release.
29+
> Although the PowerApps host applications work on top of React, the version of React you bundle will not communicate with the host version, nor is it dependent on that version. A new copy of React (or any third-party library you bundle with your component) will be loaded into the host page for every instance of that control, so be mindful of how large you are making your page(s) as you add components. We will have a solution to this issue in a future release.
3030
3131
## Manifest
3232

@@ -48,7 +48,7 @@ Model-driven apps and canvas apps (experimental preview)
4848

4949
This sample provides examples on how to add dependencies for third-party libraries and Office UI Fabric, showcasing how to utilize the Office UI Fabric components for React for UI and perform bi-directional data-binding between the PowerApps component framework and the React state model.
5050

51-
The component sample consists of three Office UI Fabric components: a facepile, a slider, a check box, and a drop-down list. When you move the slider, the number of faces in the facepile changes. The check box controls whether the faces fade in and out or simply appear or disappear, and the options in the drop-down list control the size of the faces. If there is no value set, the number of faces defaults to 3.
51+
The component sample consists of three Office UI Fabric components: a facepile, a slider, a check box, and a drop-down list. When you move the slider, the number of faces in the facepile changes. The check box components whether the faces fade in and out or simply appear or disappear, and the options in the drop-down list control the size of the faces. If there is no value set, the number of faces defaults to 3.
5252

5353
- When the component is loaded, the slider is set to the bound attribute value. The `context.parameters.[property_name].attributes` property contains the associated metadata.
5454
- An event handler is passed in the React component's props; this will allow the React component to notify the host PowerApps component framework control that a value has changed. The event handler then determines if a call to the **notifyOutputEvents** method is necessary.

powerapps-docs/developer/component-framework/sample-controls/table-control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,13 +413,13 @@ color: #1160B7;
413413

414414
This sample provides examples on how to use methods from the `IClient, IUserSettings, IUtility, IFormatting interfaces`.
415415

416-
This component also showcases two utility functions, `setFullScreen` and `lookupObjects`. These functions are invoked by clicking the button rendered as part of the custom component. The `setFullScreen` button toggles the component in and out of full screen mode. The `lookupObjects` button opens a lookup dialog, and then inject the selected record as text into div.
416+
This component also showcases two utility functions, `setFullScreen` and `lookupObjects`. These functions are invoked by clicking the button rendered as part of the code component. The `setFullScreen` button toggles the component in and out of full screen mode. The `lookupObjects` button opens a lookup dialog, and then inject the selected record as text into div.
417417

418418
In this sample, we render an HTML button and attach a JavaScript `onClick` event handler `onLookupObjectsButtonClick` to the button. On click of this button, we invoke `context.utils.lookupObjects()` method and pass as a parameter an array of entity names.
419419

420420
This method returns a JavaScript Promise object, representing the completion or failure of the call to the lookup dialog. If the promise is resolved successfully, the lookup object which the user selected is passed as a parameter into the callback method and can be referenced as data.id, data.name, data.entityType.
421421

422-
The callback method injects this information as HTML into a div rendered on the custom component to showcase the selected results to the user. If the promise is rejected, the error callback method is invoked where your component can handle the error scenario accordingly.
422+
The callback method injects this information as HTML into a div rendered on the code component to showcase the selected results to the user. If the promise is rejected, the error callback method is invoked where your component can handle the error scenario accordingly.
423423

424424
### Related topics
425425

powerapps-docs/developer/component-framework/sample-controls/webapi-control.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ author: nkrb
1313

1414
[!INCLUDE[cc-beta-prerelease-disclaimer](../../../includes/cc-beta-prerelease-disclaimer.md)]
1515

16-
The Web API component is designed to perform create, retrieve, update and delete actions. The component renders four buttons, which can be clicked to invoke different Web API actions. The result of the Web API call is injected into a HTML div element at the bottom of the custom component.
16+
The Web API component is designed to perform create, retrieve, update and delete actions. The component renders four buttons, which can be clicked to invoke different Web API actions. The result of the Web API call is injected into a HTML div element at the bottom of the code component.
1717

1818
> [!div class="mx-imgBorder"]
1919
> ![Web API component](../media/web-api-control.png "Web API component")
@@ -566,21 +566,21 @@ To change the default configuration to any entity or field, update the below con
566566
```TypeScript
567567
private static _entityName:string = "account";
568568
private static _requiredAttributeName: string = "name";
569-
private static _requiredAttributeValue: string = "Web API Custom component (Sample)";
569+
private static _requiredAttributeValue: string = "Web API code component (Sample)";
570570
private static _currencyAttributeName: string = "revenue";
571571
```
572572

573573
The `createRecord` method renders three buttons, which allows you to create an account record with the revenue field set to different values (100, 200, 300).
574574

575-
When you click one of the create buttons, the button’s `onClick` event handler checks the value of the button clicked and use the Web API action to create an account record with the revenue field set to the button’s value. The name field of the account record will be set to `Web API Custom component (Sample)` with a random `int` appended to the end of the string. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
575+
When you click one of the create buttons, the button’s `onClick` event handler checks the value of the button clicked and use the Web API action to create an account record with the revenue field set to the button’s value. The name field of the account record will be set to `Web API code component (Sample)` with a random `int` appended to the end of the string. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
576576

577577
The `deleteRecord` method renders a button which opens a lookup dialog when clicked. The lookup dialog allows you to select the account record you want to delete. Once an account record is selected from the lookup dialog, it is passed to the `deleteRecord` to delete the record from the database. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
578578

579-
The FetchXML `retrieveMultiple` method renders a button in the custom component. `onClick` of this button, FetchXML is generated and passed to the `retrieveMultiple` function to calculate the average value of the revenue field for all the accounts records. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
579+
The FetchXML `retrieveMultiple` method renders a button in the code component. `onClick` of this button, FetchXML is generated and passed to the `retrieveMultiple` function to calculate the average value of the revenue field for all the accounts records. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
580580

581-
The OData `retrieveMultiple` method renders a button in the custom component. `onClick` of this button, OData string is generated and passed to the `retrieveMultiple` function to retrieve all account records with a name field that is like ‘Custom component Web API (Sample)’, which is true for all account records created by this custom component example.
581+
The OData `retrieveMultiple` method renders a button in the code component. `onClick` of this button, OData string is generated and passed to the `retrieveMultiple` function to retrieve all account records with a name field that is like ‘code component Web API (Sample)’, which is true for all account records created by this code component example.
582582

583-
On successful retrieve of the records, the custom component has logic to count how many account records have the revenue field set to 100, 200 or 300, and display this count into an odata status container div on the custom component. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
583+
On successful retrieve of the records, the code component has logic to count how many account records have the revenue field set to 100, 200 or 300, and display this count into an odata status container div on the code component. The callback method from the Web API call injects the result of the Web API call (success or failure) into the custom control’s result div.
584584

585585
### Related topics
586586

0 commit comments

Comments
 (0)