new Manage()
wp.media.view.MediaFrame.Manage
A generic management frame workflow.
Used in the media grid view.
- Mixes In:
- Source:
Extends
- wp.media.view.MediaFrame
- wp.media.view.Frame
- wp.media.View
- wp.Backbone.View
- Backbone.View
Classes
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. -
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. -
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. -
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. -
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. -
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. -
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
-
setMenuTabPanelAriaAttributes()
-
Sets the attributes to be used on the menu ARIA tab panel.
- Since:
-
- 5.3.0
- Inherited From:
- Source:
Returns:
- Type
- void
-
setRouterTabPanelAriaAttributes()
-
Sets the attributes to be used on the router ARIA tab panel.
- Since:
-
- 5.3.0
- Inherited From:
- Source:
Returns:
- Type
- void
-
triggerModeEvents()
-
Map activeMode collection events to the frame.
- Inherited From:
- Overrides:
- Source:
Events
-
{mode}:deactivate
-
Frame mode deactivation event.
- Inherited From:
- Overrides:
- Source: