Constructs a new MediaGallery.
Optional initial data for the media gallery.
Adds items to the media gallery.
The items to add. Can be a single item, an array of items, or multiple items as arguments.
The updated MediaGallery instance.
Sets the ID for the media gallery component.
The ID to set.
The updated MediaGallery instance.
Sets the items for the media gallery, replacing any existing items.
The items to set. Can be a single item, an array of items, or multiple items as arguments.
The updated MediaGallery instance.
Represents a media gallery component builder. Used to display a collection of media items.
Example