BeforePublishEvent: add() method
The add method can be used to register listening for a certain element event.
grammar
Parameters
name
Specify the name of the element event to be listened to.
listener
Specify the listening callback.
context
Front-end custom component or card instance.
return value
BeforePublishEvent object.
Compatibility
LCD tables only load in the browser