Class: Modal

wp.media.view. Modal


wp.media.view.Modal A modal view, which the media modal uses as its default container.
Source:

Extends

Methods


attach()

Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

close(options)

Parameters:
Name Type Description
options Object
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

content(content)

Parameters:
Name Type Description
content Array | Object Views to register to '.media-modal-content'
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

detach()

Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

dispose()

Inherited From:
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

escape()

Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

escapeHandler(event)

Parameters:
Name Type Description
event Object
Source:

keydown(event)

Parameters:
Name Type Description
event Object
Source:

open()

Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

prepare()

Source:
Returns:
Type
Object

propagate(id)

Triggers a modal event and if the `propagate` option is set, forwards events to the modal's controller.
Parameters:
Name Type Description
id string
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.Modal

remove()

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