id |
string
|
<optional>
|
gallery-library
|
Unique identifier. |
title |
string
|
<optional>
|
Add to Gallery
|
Title for the state. Displays in the frame's title region. |
multiple |
boolean
|
<optional>
|
add
|
Whether multi-select is enabled. @todo 'add' doesn't seem do anything special, and gets used as a boolean. |
library |
wp.media.model.Attachments
|
<optional>
|
|
The attachments collection to browse.
If one is not supplied, a collection of all images will be created. |
filterable |
boolean
|
string
|
<optional>
|
uploaded
|
Whether the library is filterable, and if so what filters should be shown.
Accepts 'all', 'uploaded', or 'unattached'. |
menu |
string
|
<optional>
|
gallery
|
Initial mode for the menu region. |
content |
string
|
<optional>
|
upload
|
Initial mode for the content region.
Overridden by persistent user setting if 'contentUserSetting' is true. |
router |
string
|
<optional>
|
browse
|
Initial mode for the router region. |
toolbar |
string
|
<optional>
|
gallery-add
|
Initial mode for the toolbar region. |
searchable |
boolean
|
<optional>
|
true
|
Whether the library is searchable. |
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. |
contentUserSetting |
boolean
|
<optional>
|
true
|
Whether the content region's mode should be set and persisted per user. |
priority |
int
|
<optional>
|
100
|
The priority for the state link in the media menu. |
syncSelection |
boolean
|
<optional>
|
false
|
Whether the Attachments selection should be persisted from the last state.
Defaults to false because for this state, because the library of the Edit Gallery state is the selection. |