Power App component

What is Power Apps Component Framework (PCF)?

Power Apps Component Framework is to create (code) components that can be used across apps. This framework empowers developers and app makers to develop components for model-driven apps, canvas apps, and portals.

Benefits

Prerequisites

Creating the component with Power Apps CLI


Initialize and create a project

You can open your preferred CLI and navigate to the folder.

pac pcf init -n "name" -ns "namespace" -t [dataset or field]

Overview

Manifest file

Manifest file

Configuration Files

Project File

Project File

Index.ts

Update the index.ts file before we run our code.

Update the index

Save the changes made in the index.ts file and run the command.

npm start watch

Output

Output