Class: EditLibrary

wp.media.view.Attachment. EditLibrary


new EditLibrary()

wp.media.view.Attachment.EditLibrary
Source:

Extends

Methods


_syncAlbum(model, value)

Parameters:
Name Type Description
model Backbone.Model
value string
Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

_syncArtist(model, value)

Parameters:
Name Type Description
model Backbone.Model
value string
Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

_syncCaption(model, value)

Parameters:
Name Type Description
model Backbone.Model
value string
Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

_syncTitle(model, value)

Parameters:
Name Type Description
model Backbone.Model
value string
Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

checkClickHandler()

Add the model if it isn't in the selection, if it is in the selection, remove it.
Parameters:
Type Description
Inherited From:
Source:
Returns:

deselect(model, collection)

Parameters:
Name Type Description
model Backbone.Model
collection Backbone.Collection
Inherited From:
Source:

details(model, collection)

Parameters:
Name Type Description
model Backbone.Model
collection Backbone.Collection
Inherited From:
Source:

dispose()

Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

imageSize(size)

Parameters:
Name Type Description
size string
Inherited From:
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:
Source:

render()

Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

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:
Source:

select(model, collection)

Parameters:
Name Type Description
model Backbone.Model
collection Backbone.Collection
Inherited From:
Source:

selected()

Inherited From:
Source:
Returns:
Type
unresolved | Boolean

toggleSelection(options)

Parameters:
Name Type Description
options Object
Inherited From:
Source:

toggleSelectionHandler(event)

Parameters:
Name Type Description
event Object
Inherited From:
Source:

updateSave(status)

Parameters:
Name Type Description
status string
Inherited From:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Attachment

updateSetting(event)

Parameters:
Name Type Description
event Object
Inherited From:
Source: