Class: Manage

wp.media.view.MediaFrame. Manage


new Manage()

Source:

Classes

Router

Methods


_createModes()

A frame can be in a mode or multiple modes at one time. For example, the manage media frame can be in the `Bulk Select` or `Edit` mode.
Inherited From:
Overrides:
Source:

_createStates()

Create the frame's states.
Inherited From:
Overrides:
Source:
See:
Fires:
  • wp.media.controller.State#event:ready

activateMode(string)

Activate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

addNewClickHandler()

Click handler for the `Add New` button.
Source:

attach()

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

bindRegionModeHandlers()

Bind region mode activation events to proper handlers.
Source:

browseContent(contentRegion)

Create an attachments browser view within the content region.
This:
Parameters:
Name Type Description
contentRegion Object Basic object with a `view` property, which should be set with the proper region view.
Source:

close()

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

createIframeStates(options)

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

createMenu(menu)

This:
Parameters:
Name Type Description
menu Object
Inherited From:
Source:

createRouter(router)

This:
Parameters:
Name Type Description
router Object
Inherited From:
Source:

createStates()

Create the default states for the frame.
Source:

createTitle(title)

This:
Parameters:
Name Type Description
title Object
Inherited From:
Source:

createToolbar(toolbar)

This:
Parameters:
Name Type Description
toolbar Object
Inherited From:
Source:

deactivateMode(string)

Deactivate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

detach()

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

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

escape()

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

iframeContent(content)

This:
Parameters:
Name Type Description
content Object
Inherited From:
Source:

isModeActive(string)

Check if a mode is enabled on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
bool

open()

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

openEditAttachmentModal()

Open the Edit Attachment modal.
Source:

remove()

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

render()

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

reset()

Reset all states on the frame to their defaults.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.Frame

triggerModeEvents()

Map activeMode collection events to the frame.
Inherited From:
Overrides:
Source:

Events


{mode}:deactivate

Frame mode deactivation event.
Inherited From:
Overrides:
Source:

Class: Manage

wp.media.view.MediaFrame. Manage


new Manage()

wp.media.view.MediaFrame.Manage A generic management frame workflow. Used in the media grid view.
Mixes In:
Source:

Extends

Classes

Router

Methods


_createModes()

A frame can be in a mode or multiple modes at one time. For example, the manage media frame can be in the `Bulk Select` or `Edit` mode.
Inherited From:
Overrides:
Source:

_createStates()

Create the frame's states.
Inherited From:
Overrides:
Source:
See:
Fires:
  • wp.media.controller.State#event:ready

activateMode(string)

Activate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

addNewClickHandler()

Click handler for the `Add New` button.
Source:

attach()

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

bindRegionModeHandlers()

Bind region mode activation events to proper handlers.
Source:

browseContent(contentRegion)

Create an attachments browser view within the content region.
This:
Parameters:
Name Type Description
contentRegion Object Basic object with a `view` property, which should be set with the proper region view.
Source:

close()

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

createIframeStates(options)

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

createMenu(menu)

This:
Parameters:
Name Type Description
menu Object
Inherited From:
Source:

createRouter(router)

This:
Parameters:
Name Type Description
router Object
Inherited From:
Source:

createStates()

Create the default states for the frame.
Source:

createTitle(title)

This:
Parameters:
Name Type Description
title Object
Inherited From:
Source:

createToolbar(toolbar)

This:
Parameters:
Name Type Description
toolbar Object
Inherited From:
Source:

deactivateMode(string)

Deactivate a mode on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
this

detach()

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

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

escape()

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

iframeContent(content)

This:
Parameters:
Name Type Description
content Object
Inherited From:
Source:

isModeActive(string)

Check if a mode is enabled on the frame.
Parameters:
Name Type Description
string mode Mode ID.
Inherited From:
Overrides:
Source:
Returns:
bool

open()

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

openEditAttachmentModal()

Open the Edit Attachment modal.
Source:

remove()

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

render()

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

reset()

Reset all states on the frame to their defaults.
Inherited From:
Overrides:
Source:
Returns:
Returns itself to allow chaining
Type
wp.media.view.Frame

triggerModeEvents()

Map activeMode collection events to the frame.
Inherited From:
Overrides:
Source:

Events


{mode}:deactivate

Frame mode deactivation event.
Inherited From:
Overrides:
Source: