CRecordWebRegisterWidgetOwner
The
The message is part of the
The API is located in the plugin NY_
{
"id": "738d3f34-a5a0-4431-a9ed-6064d39910cd",
"name": "WEB_REGISTER_WIDGET_OWNER ",
"description": "Register a target address for a widget.",
"slots": [
{
"key": "1",
"name": "WIDGET_IDS ",
"direction": "REQUEST",
"mandatory": "true",
"type": "STRING_ARRAY",
"description": "The IDs of HTML widgets which belong to the sender."
}
]
}
Usage
Registration
This method registers an array of HTML element IDs in order to receive notifications from the browser for these elements.
The
public void registerWidgets(@NotNull final CTargetAddressa , final String @NotNull []Remote Skin AddressaWidgetIds ) throws CException { final CEnvelope env = CEnvelope.forSingleTarget(a ); final CRecord record =Remote Skin AddressCRecordWebRegisterWidgetOwner .create();CRecordWebRegisterWidgetOwner .setWidgetIds(record,aWidgetIds ); sendNotification(env, record); }
Deregistration
When your dialog is closed, you must deregister your widgets with the message CRecordWebDeregisterWidgetOwner.