Skip to content

Commit cf910aa

Browse files
Update init.md
1 parent 7c29ad2 commit cf910aa

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ Model-driven apps and canvas apps (public preview)
3232

3333
## Example
3434

35-
```JavaScript
36-
MyNameSpace.JSHelloWorldControl.prototype.init = function (context, notifyOutputChanged, state, container) {
35+
```TypeScript
36+
public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged: () => void, state: ComponentFramework.Dictionary, container:HTMLDivElement)
37+
{
3738
this._labelElement = document.createElement("label");
38-
this._labelElement.setAttribute("class", "JS_HelloWorldColor");
39+
this._labelElement.setAttribute("class", "HelloWorldColor");
3940
container.appendChild(this._labelElement);
40-
};
41+
}
4142
```
4243

4344
### Related topics

0 commit comments

Comments
 (0)