Skip to content

Commit 27cb5ad

Browse files
authored
Live publish
2 parents c8d982a + 7bf4f34 commit 27cb5ad

File tree

8 files changed

+83
-30
lines changed

8 files changed

+83
-30
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Code components for model-driven apps | Microsoft Docs
3+
description: Create code components for canvas apps
4+
keywords:
5+
ms.author: nabuthuk
6+
author: Nkrb
7+
manager: kvivek
8+
ms.date: 02/24/2020
9+
ms.service: "powerapps"
10+
ms.suite: ""
11+
ms.tgt_pltfrm: ""
12+
ms.topic: "article"
13+
ms.assetid: 5d100dc3-bd82-4b45-964c-d90eaebc0735
14+
---
15+
16+
# Code components for model-driven apps
17+
18+
Power Apps component framework gives developers the ability to extend the visualizations in model-driven apps. Professional developers can create, debug, import, and add code componments to model-driven apps using [Power Apps CLI](get-powerapps-cli.md). You can add code components to fields, grids and sub grids in model-driven apps.
19+
20+
> [!IMPORTANT]
21+
> Power Apps component framework is enabled for model-driven apps by default. See [Code components for canvas apps](component-framework-for-canvas-apps.md) to learn how to enable Power Apps component framework for canvas apps.
22+
23+
## Implementing code components
24+
25+
Before you start creating code components, make sure that you have installed all the prerequisites that are required to develop components using Power Apps component framework.
26+
27+
The [create your first code component](implementing-controls-using-typescript.md) topic demonstrates the step-by-step process to create code components.
28+
29+
## Add code components to model-driven apps
30+
31+
To add code components to a field or an entity in model-driven apps, see [Add code components to model-driven apps](add-custom-controls-to-a-field-or-entity.md).
32+
33+
> [!div class="mx-imgBorder"]
34+
> ![Add linear slider control](../../maker/model-driven-apps/media/add-slider.PNG "Add linear slider control")
35+
36+
> [!div class="mx-imgBorder"]
37+
> ![Data Set Grid component](media/add-dataset-component.png "Data Set Grid component")
38+
39+
## Update existing code components
40+
41+
Whenever you update the code components and want to see the changes in runtime, you need to bump the version attribute in the manifest file. It is recommended to always bump the version of the component whenever you make changes.
42+
43+
## See also
44+
45+
[Power Apps component framework overview](overview.md)<br/>
46+
[Create your first code component](implementing-controls-using-typescript.md)

powerapps-docs/developer/component-framework/community-resources.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@ Make sure that you review the licensing terms and the source code before you dow
3131
> [!div class="mx-imgBorder"]
3232
> ![Component gallery](media/pcf-gallery.PNG "Components gallery")
3333
34-
## Blogs
35-
36-
The following is the list of blogs created by Power Apps community.
37-
38-
- [Add style to code component in Power Apps component framework](https://nishantrana.me/2019/06/06/how-to-add-style-to-custom-component-in-powerapps-component-framework/)
39-
- [Beyond the Power Apps component framework](https://www.itaintboring.com/dynamics-crm/beyond-the-powerapps-component-framework)
40-
- [Beyond the citizen developer: Why pros see promise in Microsoft's Power Apps component framework](https://msdynamicsworld.com/story/beyond-citizen-developer-why-pros-see-promise-microsofts-powerapps-component-framework)
41-
- [Create code components](https://debajmecrm.com/2019/04/26/in-depth-end-end-walkthrough-develop-your-custom-controls-using-power-apps-component-framework-and-use-it-on-your-crm-interface/)
42-
- [Editing the DOM with supported code components](https://www.magnetismsolutions.com/blog/adammurchison/2019/05/29/editing-the-dom-with-supported-dynamics-365-custom-controls)
43-
- [How to configure Node.js and Typescript into your environment](https://capuanodanilo.com/2019/06/11/how-to-configure-node-js-and-typescript-into-your-environment-to-develop-powerapps-component-frameworks-pcf)
44-
- [Localization of code components](https://dynamicsninja.blog/2020/01/21/pcf-localization)
45-
- [Power Apps component framework – Frosting on the Cake](https://stevemordue.com/powerapps-component-framework-frosting-on-the-cake/)
46-
- [Public availability of Power Apps component framework – An important milestone](https://crmindian.com/2019/04/24/public-availability-of-powerapps-component-framework-an-important-milestone-for-powerapps-and-d365/)
47-
- [Work with code components using Power Apps component framework](https://powermaverick.dev/2019/05/18/create-custom-controls-using-powerapp-component-framework)
48-
4934
## Videos
5035

5136
The following is the list of videos created by Power Apps community.
@@ -65,7 +50,22 @@ The following is the list of videos created by Power Apps community.
6550
|[Power Apps component framework Academy: Using React and Office UI fabric](https://www.youtube.com/watch?v=e7JNgGlI3nE)| Learn how to use React and UI fabric in code components.|
6651
|[Power Apps component framework Academy: Usage of additional frameworks](https://www.youtube.com/watch?v=cOPyyDdsEjQ)| Learn how to use additional frameworks in building code components.|
6752
[Power Apps component framework Academy: Working with manifest file](https://www.youtube.com/watch?v=qbSpDVTxt7U&t=5s)| Introductory video on manifest file and various methods that need to be defined for developing code components in the manifest file.|
53+
|[Power Apps component framework: What it is for Dynamics 365](https://youtu.be/3LnPaKtfKhw)|If you have ever lamented over the limitations of custom form components in Microsoft Dynamics 365, this tutorial will open your eyes to a whole new world of possibilities.|
6854

55+
## Blogs
56+
57+
The following is the list of blogs created by Power Apps community.
58+
59+
- [Add style to code component in Power Apps component framework](https://nishantrana.me/2019/06/06/how-to-add-style-to-custom-component-in-powerapps-component-framework/)
60+
- [Beyond the Power Apps component framework](https://www.itaintboring.com/dynamics-crm/beyond-the-powerapps-component-framework)
61+
- [Beyond the citizen developer: Why pros see promise in Microsoft's Power Apps component framework](https://msdynamicsworld.com/story/beyond-citizen-developer-why-pros-see-promise-microsofts-powerapps-component-framework)
62+
- [Create code components](https://debajmecrm.com/2019/04/26/in-depth-end-end-walkthrough-develop-your-custom-controls-using-power-apps-component-framework-and-use-it-on-your-crm-interface/)
63+
- [Editing the DOM with supported code components](https://www.magnetismsolutions.com/blog/adammurchison/2019/05/29/editing-the-dom-with-supported-dynamics-365-custom-controls)
64+
- [How to configure Node.js and Typescript into your environment](https://capuanodanilo.com/2019/06/11/how-to-configure-node-js-and-typescript-into-your-environment-to-develop-powerapps-component-frameworks-pcf)
65+
- [Localization of code components](https://dynamicsninja.blog/2020/01/21/pcf-localization)
66+
- [Power Apps component framework – Frosting on the Cake](https://stevemordue.com/powerapps-component-framework-frosting-on-the-cake/)
67+
- [Public availability of Power Apps component framework – An important milestone](https://crmindian.com/2019/04/24/public-availability-of-powerapps-component-framework-an-important-milestone-for-powerapps-and-d365/)
68+
- [Work with code components using Power Apps component framework](https://powermaverick.dev/2019/05/18/create-custom-controls-using-powerapp-component-framework)
6969

7070
## Tools
7171

powerapps-docs/developer/component-framework/component-framework-for-canvas-apps.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ In this experimental preview, Power Apps component framework enables app makers
2929

3030
System Administrator privileges are required to enable the Power Apps component feature in the environment.
3131

32-
> [!IMPORTANT]
33-
> By default, Power Apps component framework is enabled for model-driven apps.
34-
3532
## Enable Power Apps component framework feature
3633

3734
To add code components to an app, you need to enable the Power Apps component framework feature in each environment where you want to use them. To enable an environment to use code components inside its apps:
@@ -62,14 +59,8 @@ After you enable the Power Apps component framework feature in your environment,
6259

6360
The [Create your first code component](implementing-controls-using-typescript.md) topic demonstrates the step-by-step process to create code components.
6461

65-
> [!NOTE]
66-
> Implementing code components is the same for both model-driven apps and canvas apps (experimental preview). The only difference is adding the code components.
67-
6862
## Add components to a canvas app
6963

70-
> [!NOTE]
71-
> To add code components to a field or an entity for model-driven apps, see [Add code components to model-driven apps](add-custom-controls-to-a-field-or-entity.md)
72-
7364
To add code components to a canvas app:
7465

7566
1. Navigate to Power Apps Studio.

powerapps-docs/developer/component-framework/custom-controls-overview.md

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

1515
Code components are a type of solution components, which means they can be included in a solution file and installed in different environments. More information: [Package and distribute extensions using solutions](https://docs.microsoft.com/dynamics365/customer-engagement/developer/package-distribute-extensions-use-solutions).
1616

17-
You add code components by including them in a solution and then import it into Common Data Service. Once the components are in Common Data Service, system administrators and system customizers can configure fields, subgrids, views, and dashboard subgrids to use in place of default components. You can also add these code components in canvas apps.
17+
> [!div class="mx-imgBorder"]
18+
> ![Code components](media/code-components.gif "Code components")
19+
20+
You add code components by including them in a solution and then import it into Common Data Service. Once the components are in Common Data Service, system administrators and system customizers can configure fields, subgrids, views, and dashboard subgrids to use in place of default components. You can add these code components to both **model-driven and canvas apps**.
1821

1922
Code components consist of three elements:
2023

2124
- [Manifest](#manifest)
2225
- [Component implementation](#component-implementation)
2326
- [Resources](#resources)
2427

28+
> [!NOTE]
29+
> The definition and implementation of code components using Power Apps component framework is same for both model-driven and canvas apps. The only difference between both is the configuration part.
30+
2531
## Manifest
2632

2733
Manifest is the metadata file that defines a component. It is an XML document that describes:
86.6 KB
Loading
4.24 MB
Loading
194 KB
Loading

powerapps-docs/developer/component-framework/toc.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
- name: Overview
44
href: overview.md
55
- name: What are code components
6-
href: custom-controls-overview.md
7-
- name: Code components for canvas apps
8-
href: component-framework-for-canvas-apps.md
6+
items:
7+
- name: Overview
8+
href: custom-controls-overview.md
9+
- name: Code components for model-driven apps
10+
href: code-components-model-driven-apps.md
11+
- name: Code components for canvas apps
12+
href: component-framework-for-canvas-apps.md
913
- name: Get Power Apps CLI
1014
href: get-powerapps-cli.md
1115
- name: Tutorial
@@ -342,7 +346,13 @@
342346
href: manifest-schema-reference/feature-usage.md
343347
- name: uses-feature
344348
href: manifest-schema-reference/uses-feature.md
345-
- name: Community resources
346-
href: community-resources.md
349+
- name: Resources
350+
items:
351+
- name: Community resources
352+
href: community-resources.md
353+
- name: Community forum
354+
href: https://aka.ms/PCFForum
355+
- name: Feature ideas
356+
href: https://aka.ms/PCFIdea
347357
- name: Share your feedback
348358
href: share-your-feedback-for-pcf.md

0 commit comments

Comments
 (0)