Skip to content

Commit afe9588

Browse files
authored
Merge pull request #1666 from MicrosoftDocs/master
Publish: Behavior formulas for components
2 parents 2376c1f + 76dee0d commit afe9588

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,11 @@
756756
- name: Let customers test drive your apps
757757
href: ./canvas-apps/dev-appsource-test-drive.md
758758
- name: Create a component
759-
href: ./canvas-apps/create-component.md
759+
items:
760+
- name: Overview
761+
href: ./canvas-apps/create-component.md
762+
- name: Behavior formulas
763+
href: ./canvas-apps/component-behavior.md
760764
- name: Embed canvas apps in your applications
761765
href: ./canvas-apps/embedding-sdk.md
762766
- name: Model-driven apps
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Behavior formulas for components | Microsoft Docs
3+
description: Trigger an app to perform one or more tasks when a component-based action occurs.
4+
author: yifwang
5+
ms.service: powerapps
6+
ms.topic: article
7+
ms.date: 05/24/2019
8+
ms.author: yifwang
9+
search.audienceType:
10+
- maker
11+
search.app:
12+
- PowerApps
13+
---
14+
15+
# Behavior formulas for components
16+
17+
> [!IMPORTANT]
18+
> This feature is still experimental and disabled by default. For more information, see [Experimental and preview features](working-with-experimental.md).
19+
20+
Specify one or more [behavior formulas](working-with-formulas-in-depth.md) that run when an event triggers a change in component instances. For example, set a component's **OnReset** property to one or more formulas that perform initialization, clear input, and reset values when the **Reset** function runs on the component instances.
21+
22+
## OnReset ##
23+
24+
With a component selected, select **OnReset** in the drop-down list of properties (on the right side of the formula bar), and then enter one or more formulas.
25+
26+
> [!div class="mx-imgBorder"]
27+
> ![OnReset example](./media/component-behavior/example-onreset.png)
28+
29+
To test **OnReset**, configure a control to reset the component. For example, set the **OnSelect** property of a button to this formula: **Reset**(*ComponentName*)
30+
31+
> [!div class="mx-imgBorder"]
32+
> ![Reset button](./media/component-behavior/reset-button.png)
Loading
Loading

0 commit comments

Comments
 (0)