new TwoColumn()
wp.media.view.Attachment.Details.TwoColumn
A similar view to media.view.Attachment.Details
for use in the Edit Attachment modal.
Extends
- wp.media.view.Attachment.Details
- wp.media.view.Attachment
- wp.media.View
- wp.Backbone.View
- Backbone.View
Methods
-
_syncAlbum(model, value)
-
Parameters:
Name Type Description model
Backbone.Model value
string - Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
_syncArtist(model, value)
-
Parameters:
Name Type Description model
Backbone.Model value
string - Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
_syncCaption(model, value)
-
Parameters:
Name Type Description model
Backbone.Model value
string - Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
_syncTitle(model, value)
-
Parameters:
Name Type Description model
Backbone.Model value
string - Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
checkClickHandler()
-
Add the model if it isn't in the selection, if it is in the selection, remove it.
Parameters:
Type Description - Inherited From:
- Overrides:
- Source:
Returns:
-
deleteAttachment(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Source:
-
deselect(model, collection)
-
Parameters:
Name Type Description model
Backbone.Model collection
Backbone.Collection - Inherited From:
- Overrides:
- Source:
-
details(model, collection)
-
Parameters:
Name Type Description model
Backbone.Model collection
Backbone.Collection - Inherited From:
- Overrides:
- Source:
-
dispose()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
editAttachment(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Source:
-
imageSize(size)
-
Parameters:
Name Type Description size
string - Inherited From:
- Overrides:
- Source:
Returns:
- Type
- Object
-
remove()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining- Type
- wp.media.View
-
removeFromLibrary(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Overrides:
- Source:
-
render()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
save()
-
Pass all the arguments to the model's save method. Records the aggregate status of all save requests and updates the view's classes accordingly.
- Inherited From:
- Overrides:
- Source:
-
select(model, collection)
-
Parameters:
Name Type Description model
Backbone.Model collection
Backbone.Collection - Inherited From:
- Overrides:
- Source:
-
selected()
-
- Inherited From:
- Overrides:
- Source:
Returns:
- Type
- unresolved | Boolean
-
toggleSelection(options)
-
Parameters:
Name Type Description options
Object - Inherited From:
- Overrides:
- Source:
-
toggleSelectionHandler(event)
-
When reverse tabbing(shift+tab) out of the right details panel, deliver the focus to the item in the list that was being edited.
Parameters:
Name Type Description event
Object - Inherited From:
- Overrides:
- Source:
-
trashAttachment(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Source:
-
untrashAttachment(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Source:
-
updateSave(status)
-
Parameters:
Name Type Description status
string - Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining -
updateSetting(event)
-
Parameters:
Name Type Description event
Object - Inherited From:
- Overrides:
- Source: