Skip to content

Commit 5aca057

Browse files
authored
Merge pull request #9345 from gjulivan/dev_copy
add detailed explanation for html element events
2 parents 530a3b7 + fb91641 commit 5aca057

File tree

1 file changed

+14
-7
lines changed
  • content/en/docs/appstore/use-content/platform-supported-content/widgets

1 file changed

+14
-7
lines changed

content/en/docs/appstore/use-content/platform-supported-content/widgets/htmlelement.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,29 @@ To configure this widget, follow these steps:
4343

4444
#### HTML Element Section
4545

46-
* **Tag name**sets the type of the element (such as div, span, or img). If you would like to add a custom name for the element, select **Use custom name** in the drop-down menu.
46+
* **Tag name**Sets the type of the element (such as div, span, or img). If you would like to add a custom name for the element, select **Use custom name** in the drop-down menu.
4747
* **Repeat element**
48-
* **Yes**if selected, repeats the element for each item in the data source assigned.
49-
* **No** (default) – if selected, the element is rendered once.
48+
* **Yes**If selected, repeats the element for each item in the data source assigned.
49+
* **No** (default) – If selected, the element is rendered once.
5050
* **Content**
51-
* **Container for widgets** (default) – if selected, the widget acts as a container for other widgets.
52-
* **HTML**if selected, uses custom HTML markup as defined in the HTML settings.
53-
* **HTML** (Visible if **Content** option is set to **HTML**) – can be either an expression or a text template. This defines custom HTML markup for the widget, therefore the value should be valid HTML as it will be inserted as HTML element content.
51+
* **Container for widgets** (default) – If selected, the widget acts as a container for other widgets.
52+
* **HTML**If selected, uses custom HTML markup as defined in the HTML settings.
53+
* **HTML** (Visible if **Content** option is set to **HTML**) – Can be either an expression or a text template. This defines custom HTML markup for the widget, therefore the value should be valid HTML as it will be inserted as HTML element content.
5454

5555
#### HTML Attributes Section
5656

5757
* **Attributes** – sets the attributes to be assigned into the HTML element.
5858

5959
### Events Tab
6060

61-
{{% alert color="info" %}}For more information, see [Event Actions](/refguide/on-click-event/#actions) in *Properties Common in the Page Editor*.{{% /alert %}}
61+
Sets the events for the created HTML element.
62+
63+
* **Event**
64+
* **Name** - Sets the event type that will be applied to the HTML element. The choices are based on standard browser events.
65+
* **Action** - Sets the [Event Actions](/refguide/on-click-event/#actions) for the selected event type.
66+
* **Advanced**
67+
* **Stop propagation** - If yes, the event will be prevented from being called further up in the DOM tree. For more information, see [Event: stopPropagation()](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation).
68+
* **Prevent default** - If yes, will cancel the default events. For more informaion, see [Event: preventDefault()](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
6269

6370
### Common Tab
6471

0 commit comments

Comments
 (0)