Skip to content

Commit a7e98cb

Browse files
committed
Preface the example in the style of the rest of the doc
1 parent 427eac8 commit a7e98cb

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

  • content/en/docs/apidocs-mxsdk/apidocs/frontend/pluggable-widgets/pluggable-widgets-client-apis

content/en/docs/apidocs-mxsdk/apidocs/frontend/pluggable-widgets/pluggable-widgets-client-apis/_index.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,8 @@ Note that `isExecuting` indicates only whether the current action is running. It
7474

7575
The method `execute` triggers the action. It returns nothing and does not guarantee that the action will be started synchronously. But when the action does start, the component will receive a new prop with the `isExecuting` flag set.
7676

77-
When the action property [defines action variables](/apidocs-mxsdk/apidocs/pluggable-widgets-property-types/#action-xml-elements), the `execute()` method expects an object map containing a property for each variable. The variables may be undefined. Given an action property with variables as defined below, `execute()` accepts the following input:
78-
79-
```xml
80-
<actionVariables>
81-
<actionVariable key="lat" type="Decimal" caption="Latitude of selected location" />
82-
<actionVariable key="long" type="Decimal" caption="Longitude of selected location" />
83-
<actionVariable key="label" type="String" caption="Label of the selected location" />
84-
</actionVariables>
85-
```
77+
When the action property [defines action variables](/apidocs-mxsdk/apidocs/pluggable-widgets-property-types/#action-xml-elements), the `execute()` method expects an object map containing a property for each variable. The variables may be passed as undefined, but need to be set explicitly.
78+
Given an action property that defines two `Decimal` variables `lat` and `long`, and a `String` variable named `label`, its `execute()` method accepts the following input.
8679

8780
```ts
8881
interface MapWidgetProps {

0 commit comments

Comments
 (0)