Registers a handler for the specified action. Actions are a mechanism for frames to present UI controls that apply to a component. The frames can hide the UI if no components register for the action. Components call registerAction to tell the frame that they want to handle the specified action. Because the component does not know if it is the main frame content, all components register for the actions they can handle. However, only the main frame content component handler is called with the action event.
registerAction(String componentType, String id, String action, Function handler, Object scope) : void
- componentType – The type of the component for which you are registering the action. See Defining Component Types and IDs for possible values.
- id – ID of the component for which you are registering the action.
This is the identifier passed in as the ID attribute in the <%Render%>
replacement tag. If id is "FrameContent", it will fire the
actionregistered event of the Frame API.
- action – The action to associate with the handler. Frames define possible action values. See ActionHandler for more information.
- handler – Function that the action invokes.
- scope – Scope (this pointer) in which the
handler function should be executed.