id |
string
|
<optional>
|
gallery-edit
|
Unique identifier. |
title |
string
|
<optional>
|
Edit Gallery
|
Title for the state. Displays in the frame's title region. |
library |
wp.media.model.Attachments
|
<optional>
|
|
The collection of attachments in the gallery.
If one is not supplied, an empty media.model.Selection collection is created. |
multiple |
boolean
|
<optional>
|
false
|
Whether multi-select is enabled. |
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. |
content |
string
|
false
|
<optional>
|
browse
|
Initial mode for the content region. |
toolbar |
string
|
false
|
<optional>
|
image-details
|
Initial mode for the toolbar region. |
describe |
boolean
|
<optional>
|
true
|
Whether to offer UI to describe attachments - e.g. captioning images in a gallery. |
displaySettings |
boolean
|
<optional>
|
true
|
Whether to show the attachment display settings interface. |
dragInfo |
boolean
|
<optional>
|
true
|
Whether to show 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. |
AttachmentView |
view
|
<optional>
|
|
The single `Attachment` view to be used in the `Attachments`.
If none supplied, defaults to wp.media.view.Attachment.EditLibrary. |