Skip to content

Commit 7c29ad2

Browse files
Update getoutputs.md
1 parent b56c20e commit 7c29ad2

File tree

1 file changed

+9
-9
lines changed
  • powerapps-docs/developer/component-framework/reference/control

1 file changed

+9
-9
lines changed

powerapps-docs/developer/component-framework/reference/control/getoutputs.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@ Model-driven apps and canvas apps (public preview)
2626
The output will contain a value for each property marked as `input-output` or `bound` in the manifest.
2727
For example, if the manifest has a property `value` that is an `input-output`, and you want to set that to the local variable `myvalue` you should return:
2828

29-
```javascript
29+
```TypeScript
3030
{
3131
value: myvalue
3232
}
3333
```
3434

3535
## Example
3636

37-
```javascript
38-
MyControl.prototype.getOutputs = function () {
39-
var result = {
40-
value: this._value
41-
};
42-
return result;
43-
};
37+
```TypeScript
38+
public getOutputs(): IOutputs
39+
{
40+
return {
41+
value: this._value
42+
};
43+
}
4444
```
4545

4646

4747
### Related topics
4848

4949
[Control](../control.md)<br/>
5050
[Power Apps component framework API reference](../../reference/index.md)<br/>
51-
[Power Apps component framework overview](../../overview.md)
51+
[Power Apps component framework overview](../../overview.md)

0 commit comments

Comments
 (0)