pcf-events

Define and handle custom PCF component events with data payloads.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/pingqLIN/skill-0 --skill pcf-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pcf-events
Source: https://github.com/pingqLIN/skill-0/tree/main/converted-skills/pcf-events
Command: npx skills add https://github.com/pingqLIN/skill-0 --skill pcf-events

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to define and manage custom events within Power Apps Component Framework (PCF) components, allowing for more sophisticated interactions between components and the hosting application.

Core Features & Use Cases

  • Custom Event Definition: Define custom events in the PCF component's manifest file.
  • Event Raising: Trigger these custom events from the component's code.
  • Event Handling: Implement handlers in both Canvas and Model-Driven apps to react to these custom events.
  • Data Payload: Pass data payloads with events for richer communication.
  • Use Case: A PCF component that visualizes complex data can raise a dataPointSelected event, passing the selected data point's ID to the hosting application, which can then update other parts of the UI or trigger further actions.

Quick Start

Define a custom event named 'onDataChange' in your PCF component's manifest and trigger it from your TypeScript code.

Frequently Asked Questions about pcf-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle custom events in Power Apps Component Framework components?

Custom event handling in Power Apps Component Framework components is achieved by defining events in the manifest file and triggering them from TypeScript code. The hosting Canvas or Model-Driven app then implements handlers to react to these triggered events.

Can I pass data payloads with custom events from a PCF component to a Canvas app?

You can pass data payloads with custom events from a PCF component to a Canvas app. The event definition in the manifest allows you to attach data, such as a selected data point's ID, enabling the hosting application to update other UI parts accordingly.

Does custom event handling in PCF work for both Canvas and Model-Driven apps?

Custom event handling in PCF works for both Canvas and Model-Driven apps. Once a custom event is defined in the manifest and raised from the component code, both application types can implement event handlers to execute actions based on the triggered event.

What is the best way to define a custom event in a PCF component manifest?

The best way to define a custom event in a PCF component is by declaring it directly in the manifest file. This definition specifies the event name, such as 'onDataChange', allowing the component's TypeScript code to trigger it for the hosting application to handle.

How do I trigger a custom event from my PCF component code?

To trigger a custom event from your PCF component code, ensure the event is declared in the manifest first. Then, invoke the event from your TypeScript implementation to pass data payloads or callback functions back to the hosting Power Apps application.