Class: MediaDetails

wp.media.view. MediaDetails


new MediaDetails()

wp.media.view.MediaDetails
Source:

Extends

Methods


<static> prepareSrc(elem)

When multiple players in the DOM contain the same src, things get weird.
Parameters:
Name Type Description
elem HTMLElement
Source:
Returns:
Type
HTMLElement

dispose()

Inherited From:
Overrides:
Source:
To Do:
  • The internal comment mentions this might have been a stop-gap before Backbone 0.9.8 came out. Figure out if Backbone core takes care of this in Backbone.View now.
Returns:
Returns itself to allow chaining.
Type
wp.media.View

remove()

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

removeSetting(e)

Remove a setting's UI when the model unsets it
Parameters:
Name Type Description
e Event
Source:
Fires:
  • wp.media.view.MediaDetails#media:setting:remove

render()

Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
media.view.MediaDetails

<abstract> setMedia()

Source:

setTracks()

Source:
Fires:
  • wp.media.view.MediaDetails#media:setting:remove

update(key)

Parameters:
Name Type Description
key string
Inherited From:
Overrides:
Source:

updateHandler(event)

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