Book Image

Extending Microsoft Power Apps with Power Apps Component Framework

By : Danish Naglekar
Book Image

Extending Microsoft Power Apps with Power Apps Component Framework

By: Danish Naglekar

Overview of this book

Power Apps Component Framework is used by professional developers to extend the capabilities of model-driven and canvas apps. Extending Microsoft Power Apps with Power Apps Component Framework will take you through the basic as well as advanced topics using practical examples. The book starts by helping you understand the fundamentals of the framework, its lifecycle, and the tools that you'll use to build code components using best practices and file management guidelines. You'll then learn how to extend Power Apps step by step and apply the principles and concepts covered in the book to build code components for field type attributes. The book covers different ways of debugging code components and guides you through the process of building code components for datasets. You'll also explore the functions and methods provided by the framework to enhance your controls using powerful sets of libraries and extensions. As you advance, you'll get to grips with creating and managing authentication profiles, discover different ways of deploying code components, and configure code components in model-driven and canvas apps. Finally, you'll learn some of the important features of the framework and learn modern web development practices. By the end of this Power Apps book, you'll be able to build, debug, enrich, and deploy code components confidently.
Table of Contents (18 chapters)
1
Section 1: Fundamentals of the Power Apps Component Framework
6
Section 2: Building and Managing Code Components
12
Section 3: Enhancing Code Components and Your Development Experience

Building a code component for a view or sub-grid

Now that you have learned the process of creating a code component with a field template, let's learn the process of creating a code component with a dataset template. There are a few differences when creating a code component with a dataset template as we are dealing with multiple records rather than a single data object and we will look at those in this section.

In this chapter, we will be building a dataset type code component that will render each contact record in a list as a card. This card will show each column as an item on the card with a value. If the column does not have any data, then it will show a hyphen, (-).

Initializing a new PCF project for a dataset

Similar to the field type code component, we first need to initialize a PCF project. Perform the following steps to create a new component project for a dataset code component:

  1. Create a new directory named MyDataCardProject, which will be your working...