id |
string
|
<optional>
|
library
|
Unique identifier. |
title |
string
|
<optional>
|
Media library
|
Title for the state. Displays in the media menu and the frame's title region. |
library |
wp.media.model.Attachments
|
<optional>
|
|
The attachments collection to browse.
If one is not supplied, a collection of all attachments will be created. |
selection |
wp.media.model.Selection
|
object
|
<optional>
|
|
A collection to contain attachment selections within the state.
If the 'selection' attribute is a plain JS object,
a Selection will be created using its values as the selection instance's `props` model.
Otherwise, it will copy the library's `props` model. |
multiple |
boolean
|
<optional>
|
false
|
Whether multi-select is enabled. |
content |
string
|
<optional>
|
upload
|
Initial mode for the content region.
Overridden by persistent user setting if 'contentUserSetting' is true. |
menu |
string
|
<optional>
|
default
|
Initial mode for the menu region. |
router |
string
|
<optional>
|
browse
|
Initial mode for the router region. |
toolbar |
string
|
<optional>
|
select
|
Initial mode for the toolbar region. |
searchable |
boolean
|
<optional>
|
true
|
Whether the library is searchable. |
filterable |
boolean
|
string
|
<optional>
|
false
|
Whether the library is filterable, and if so what filters should be shown.
Accepts 'all', 'uploaded', or 'unattached'. |
sortable |
boolean
|
<optional>
|
true
|
Whether the Attachments should be sortable. Depends on the orderby property being set to menuOrder on the attachments collection. |
autoSelect |
boolean
|
<optional>
|
true
|
Whether an uploaded attachment should be automatically added to the selection. |
describe |
boolean
|
<optional>
|
false
|
Whether to offer UI to describe attachments - e.g. captioning images in a gallery. |
contentUserSetting |
boolean
|
<optional>
|
true
|
Whether the content region's mode should be set and persisted per user. |
syncSelection |
boolean
|
<optional>
|
true
|
Whether the Attachments selection should be persisted from the last state. |