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

Understanding the context

The core property of the Power Apps component framework is its context. It provides access to all the other properties and methods available in the framework.

We used the Power Apps component framework's context in Chapter 5, Code, Test, and Repeat, to access the values of the properties defined in the manifest file. Apart from this, it also provides access to several other features. This is shown in the following diagram:

Figure 10.1 – Methods and properties provided by the framework

Each of these properties and methods can be used to create complex code components. Since context is the core module of the framework, it is available in both the init and updateView methods. If you need to utilize any of the properties or methods from outside this context, then you can pass the reference as a parameter. But when it comes to using context in different helper files other than index.ts, I would recommend against passing...