title |
string
|
|
|
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 edit.
If one is not supplied, an empty media.model.Selection collection is created. |
multiple |
boolean
|
<optional>
|
false
|
Whether multi-select is enabled. |
content |
string
|
<optional>
|
browse
|
Initial mode for the content region. |
menu |
string
|
|
|
Initial mode for the menu region. @todo this needs a better explanation. |
searchable |
boolean
|
<optional>
|
false
|
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. |
date |
boolean
|
<optional>
|
true
|
Whether to show the date filter in the browser's toolbar. |
describe |
boolean
|
<optional>
|
true
|
Whether to offer UI to describe the attachments - e.g. captioning images in a gallery. |
dragInfo |
boolean
|
<optional>
|
true
|
Whether to show instructional text about the attachments being sortable. |
dragInfoText |
boolean
|
<optional>
|
|
Instructional text about the attachments being sortable. |
idealColumnWidth |
int
|
<optional>
|
170
|
The ideal column width in pixels for attachments. |
editing |
boolean
|
<optional>
|
false
|
Whether the gallery is being created, or editing an existing instance. |
priority |
int
|
<optional>
|
60
|
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 for this state, because the library passed in *is* the selection. |
SettingsView |
view
|
<optional>
|
|
The view to edit the collection instance settings (e.g. Playlist settings with "Show tracklist" checkbox). |
AttachmentView |
view
|
<optional>
|
|
The single `Attachment` view to be used in the `Attachments`.
If none supplied, defaults to wp.media.view.Attachment.EditLibrary. |
type |
string
|
|
|
The collection's media type. (e.g. 'video'). |
collectionType |
string
|
|
|
The collection type. (e.g. 'playlist'). |