diff --git a/en/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md b/en/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md index 403d80f0efc046048662a17f19ea7de51b5aa402..9e2bea4285dcac656c91b9a1f29b01b97e8d9f56 100644 --- a/en/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md +++ b/en/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md @@ -94,39 +94,6 @@ Declare the events for service widgets in the **actions** field in the JSON file } ``` -You can also implement redirection to the target application using a **want**, which contains the **abilityName**, **bundleName**, and **parameters** fields. - -| Selector | Type | Default Value | Description | -| ------ | ------ | -------- | ---------------------------------------- | -| action | string | "router" | Event type.
- **"router"**: redirection event.
- **"message"**: message event.| -| want | [Want](../apis/js-apis-app-ability-want.md) | - | Information about the target application. For details, see the **want** format. | - - -```json - { - "data": { - "mainAbility": "xxx.xxx.xxx" - }, - "actions": { - "routerEventName1": { - "action": "router", - "want": { - "bundleName": "com.example.myapplication", - "abilityName": "EntryAbility" - } - }, - "routerEventName2": { - "action": "router", - "want": { - "action": "xxx.intent.action.DIAL", - "uri": "tel:12345678" - } - } - } - } -``` - - In API version 8, the [featureAbility.getWant](../apis/js-apis-ability-featureAbility.md) API in the **onCreate** method of the **app.js** or **app.ets** file must be called for the **want** parameter to receive related parameters. - Message event properties