cancel
Showing results for 
Search instead for 
Did you mean: 

Actions on Components

It would be advantageous to have Actions on Components.  At the very least an OnSelect action.  At the best, the ability to create custom actions in your component.

A common example is the "menu" component - the ability to raise an Action when a menu item is selected to be acted upon in the App would be helpful.

 

Current workaround - use a Toggle and create formulas based on conditions around the component. Although this adds more dependency in the hosting app - which is what the component was intended to remove.

Status: Started

The behavior property which triggers when resetting the component has been worked on. And more custom ways to add behavior property has also been planned. 

Comments
Level 10

I really agree with @RandyHayes . Without trickering OnSelect and OnChange events the component is basically useless.

 

@TopShelf-MSFT , could you assist on this request and inform the right member to look into this in the PowerApps Team. Thanks.

 

Paul

PowerApps Staff yfw
PowerApps Staff
Status changed to: Started

The behavior property which triggers when resetting the component has been worked on. And more custom ways to add behavior property has also been planned. 

Level 8

I think one way to go is to check whether there are any standard events inside the components, and give the user the option to expose them, to the internal component logic can bridge to the app logic it is used in. 


Simple Example: Fancy Button

Suppose I want to combine several icons to give a button a custom shape, or to react to variables to give it different shapes and colors. 

I would start the component and use standard icons, and a standard button. Layer them properly, and use e.g. 3 variables to control the visibility of 3 icons. 
I could just have the button transparent and lay the icons below it. 
3 input variables would ccontrol the visibility of the icons. 

Proposed implementation: The component creator would understand I used one standard PowerApps button, its OnSelect Event would be in a list of Events that I could expose in the Component, in addition to the input and output variables. 

A more advanced example could be packaging a Form or Gallery inside a component, with the option to expose those objects events, such as OnSuccess, OnReset, OnFailure, etc. 

 

Level 8

I think even if the component could input and output a type "function" it could work.