Skip to content

Commit da3b7ae

Browse files
Update updateview.md
1 parent cf910aa commit da3b7ae

File tree

1 file changed

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

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ Model-driven apps and canvas apps (public preview)
2929

3030
## Example
3131

32-
```JavaScript
33-
MyNameSpace.JSHelloWorldControl.prototype.updateView = function (context) {
34-
this._labelElement.innerText = "Hello World! (JS)";
35-
};
32+
```TypeScript
33+
public updateView(context: ComponentFramework.Context<IInputs>): void
34+
{
35+
this._labelElement.innerText = "Hello World! (TS)";
36+
}
3637
```
3738

3839
## Remarks
@@ -44,4 +45,4 @@ Set the value of the field component to the raw value from the configured field
4445

4546
[Control](../control.md)<br/>
4647
[Power Apps component framework API reference](../../reference/index.md)<br/>
47-
[Power Apps component framework overview](../../overview.md)
48+
[Power Apps component framework overview](../../overview.md)

0 commit comments

Comments
 (0)