Skip to content

Commit

Permalink
"Declarative API for Initial Components": Incorporate event names tha…
Browse files Browse the repository at this point in the history
…t contain upper-case characters (#87)

Update Declarative_API_for_Initial_Components_82a0fce.md

Incorporate event names that contain upper-case characters. 

Sample use: get notified when the component gets created by assigning a global handler to the `ComponentContainer`'s `componentCreated` event in the HTML document.

Related Q&A: https://stackoverflow.com/q/76587625/5846045
  • Loading branch information
boghyon authored Jul 20, 2023
1 parent 2824595 commit f405695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Declarative_API_for_Initial_Components_82a0fce.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ This module scans the DOM for HTML elements containing a special data attribute
### Declarative Configuration of `ComponentContainer`

> ### Caution:
> As HTML is case-insensitive, in order to define a property with upper-case characters you have to "escape" them with the hyphen character. This is similar to CSS attributes. In the following sample the `handleValidation` argument of the `ComponentContainer` constructor is used:
> As HTML is case-insensitive, property or event names with upper-case characters have to be "escaped" with the hyphen character. This is similar to CSS attributes. In the following sample, the `handleValidation` and `componentCreated` arguments of the `ComponentContainer` constructor are used:
>
> ```html
>
> <div data-sap-ui-component ... data-handle-validation="true" ...></div>
> <div data-sap-ui-component ... data-handle-validation="true" data-component-created="onComponentCreated"></div>
>
> ```
Expand Down

0 comments on commit f405695

Please sign in to comment.