Book Image

Microsoft Power Apps Cookbook, 2e - Second Edition

By : Eickhel Mendoza
3 (1)
Book Image

Microsoft Power Apps Cookbook, 2e - Second Edition

3 (1)
By: Eickhel Mendoza

Overview of this book

Power Apps is a low-code platform owned by Microsoft. With this platform, you can create solutions to solve your business needs while integrating with other components of the Power Platform, such as Microsoft Power Automate, Microsoft Power BI, and others. This book is a handy solution guide to meet many organizational requirements. Microsoft Power Apps Cookbook, Second Edition, takes a pragmatic approach where every business scenario is presented in a quick, practical, and action-oriented recipe. You will be able to use these instant solutions in your development environment and customize your business apps to meet challenging business needs. This will help you handle real-world scenarios and experiences to give you a head start in your Power Apps projects. You will discover various aspects of Power Apps, from building canvas apps, designing model-driven solutions, extending apps with custom connectors, and integrating apps with other platforms, to the pro-developer side including Power Apps Component Framework and creating website experiences for external users with Power Pages. By the end of this Microsoft Power Apps book, you will have gained experience in developing applications using the Power Apps platform and all its features.
Table of Contents (15 chapters)
13
Other Books You May Enjoy
14
Index

Building the application logic

Now that we have completed the project structure and manifest configuration, we can start building the application logic in the provided code resource file: index.ts

This file will be the component’s entry point and will be in charge of the control initialization, event handling, and control removal.

How to do it…

  1. From the Visual Studio Code menu, click on Terminal | New terminal. This action will open the integrated PowerShell console.
  2. From this integrated console, enter npm run build, and press Enter. This command will execute the component’s build process, including the manifest configuration.
  3. Using the Explorer pane, expand FontAwesomeComponent and double-click the index.ts file to open it.
  4. Enter the following code just below the export class sentence:
    private _URL: string;
    
  5. Find the init function and enter the following code between the curly brackets:
    this._URL...