TTMSFNCWXElementContainer.AddAction Method
Adds an action that listens for an event on the given HTML element and adds it to
Actions.
API unit family: TMSFNCWXContainer
Declaring type: TTMSFNCWXElementContainer
Syntax
function AddAction(AHTMLElementID: string; AEvent: TTMSFNCWXContainerHTMLEvent = heClick): TTMSFNCWXContainerElementAction; virtual;
Parameters
| Name | Description |
|---|---|
AHTMLElementID |
The id of the target HTML element to attach the listener to. |
AEvent |
The DOM event to listen for. Defaults to heClick. |
Returns
The newly created action.