No summary provided.
Creates a new media gallery from API data.
Example
Creating a media gallery from an API data object:Example
Creating a media gallery using setters and API data:Name | Type | Optional | Description |
---|---|---|---|
data | Partial<APIMediaGalleryComponent> | Yes | The API data to create this container with |
Adds a media gallery item to this media gallery.
Name | Type | Optional | Description |
---|---|---|---|
...input | RestOrArray<APIMediaGalleryItem | MediaGalleryItemBuilder | ((builder: MediaGalleryItemBuilder) => MediaGalleryItemBuilder)> | No | The items to add |
Clears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderSets the id of this component.
Name | Type | Optional | Description |
---|---|---|---|
id | number | No | The id to use |
Removes, replaces, or inserts media gallery items for this media gallery.
Name | Type | Optional | Description |
---|---|---|---|
index | number | No | The index to start removing, replacing or inserting items |
deleteCount | number | No | The amount of items to remove |
...items | RestOrArray<APIMediaGalleryItem | MediaGalleryItemBuilder | ((builder: MediaGalleryItemBuilder) => MediaGalleryItemBuilder)> | No | The items to insert |
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
Name | Type | Optional | Description |
---|---|---|---|
validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |