Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Microsoft Power Apps with Power Apps Component Framework

You're reading from   Extending Microsoft Power Apps with Power Apps Component Framework A complete guide to creating, deploying, and improving your code components

Arrow left icon
Product type Paperback
Published in Feb 2021
Publisher Packt
ISBN-13 9781800564916
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Danish Naglekar Danish Naglekar
Author Profile Icon Danish Naglekar
Danish Naglekar
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Section 1: Fundamentals of the Power Apps Component Framework
2. Chapter 1: Introduction to the Power Apps Component Framework FREE CHAPTER 3. Chapter 2: Power Apps CLI 4. Chapter 3: Community Tools and Resources 5. Chapter 4: Project Overview and the Component Life Cycle 6. Section 2: Building and Managing Code Components
7. Chapter 5: Code, Test, and Repeat 8. Chapter 6: Debugging Code Components 9. Chapter 7: Authentication Profiles 10. Chapter 8: Introduction to the Dataverse Project 11. Chapter 9: Configuring Code Components in Power Apps 12. Section 3: Enhancing Code Components and Your Development Experience
13. Chapter 10: Diving Deep into the Features Provided by PCF 14. Chapter 11: Creating Advanced Dataset Code Components 15. Chapter 12: Enriching Your Dev Experience 16. Answers to Knowledge Tests 17. Other Books You May Enjoy

Exploring the index.ts file

Once you have initialized your PCF project you can find an index.ts file in your control folder, as we discussed in the Getting to know the files and the folder structure section. This file will have four functions already defined for you, along with an empty constructor. Let's go over the importance of these four functions.

The init function

This is the first function that gets invoked when the control is loaded and is never invoked again until the control is reloaded. For example, when you navigate between records, the control is reloaded. This function can be used to initialize a control's UI. You can also invoke remote server calls and any other initialization that needs to happen when your controls load.

It has four parameters:

  • context: This is the most important object provided by the framework that gives us access to all the properties and methods that are available in the Power Apps component framework. It also contains...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime