Media gallery settings components
Example media gallery configuration
“type”: “text”
to offer a way for creators to filter your images through a text filter.
request URL
specified, with the text inputted, for your app to return a newly sorted version of results.
Example search component
select input
or programmatically generated as the plugin loads, through use of the dynamic select input
.
Example filter component
“type”: “select”
to offer a flat list of pre-defined filter options the creator can select from, each with a label
and value
nested in an options
array. Currently, only single-select functionality is available here. Once an option is selected, a new POST request will be made to the request URL
specified, with the value selected, for your app to return a newly sorted version of results.
“type”: “dynamicSelect”
to offer a flat list of dynamic filter options the creator can select from. For this, we will make a request to a POST endpoint you have created on your server to return the elements for the filter select menu as soon as the plugin is visited within the media gallery.
The response will return an array of options
, each with a label
and value
. Currently, only single-select functionality is available here. Once an option is selected, a new POST request will be made to the request URL
specified, with the value selected, for your app to return a newly sorted version of results.
Example response
“type”: “select”
to offer a flat list of sort options the creator can select from, each with a label
and value
nested in an options
array. Once an option
is selected, a new POST request will be made to the Request URL specified, with the value selected, for your app to return a newly sorted version of results.
Example sort component