The type of components allowed in the modal.
Optional data for the modal.
Sets the callback function to be executed when the modal is submitted.
The callback function.
The current Modal instance.
Sets the custom ID of the modal.
The custom ID for the modal.
The current Modal instance.
Sets the title of the modal.
The title of the modal.
The current Modal instance.
Converts the modal to JSON format.
The modal data in JSON format.
Represents a modal for user interactions.
Example