new ImageDetails()
wp.media.view.MediaFrame.ImageDetails
A media frame for manipulating an image that's already been inserted
into a post.
- Mixes In:
- Source:
Extends
- wp.media.view.MediaFrame.Select
- wp.media.view.MediaFrame
- wp.media.view.Frame
- wp.media.View
- wp.Backbone.View
- Backbone.View
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
-
attach()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining. -
bindHandlers()
-
Bind region mode event callbacks.
- Inherited From:
- Overrides:
- Source:
- See:
-
- media.controller.Region.render
-
browseContent(contentRegion)
-
Render callback for the content region in the `browse` mode.
Parameters:
Name Type Description contentRegion
wp.media.controller.Region - Inherited From:
- Source:
-
browseRouter(routerView)
-
Render callback for the router region in the `browse` mode.
Parameters:
Name Type Description routerView
wp.media.view.Router - Inherited From:
- Source:
-
close()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining. -
createIframeStates(options)
-
Parameters:
Name Type Description options
Object - Inherited From:
- Overrides:
- Source:
-
createMenu(menu)
-
This:
Parameters:
Name Type Description menu
Object - Inherited From:
- Overrides:
- Source:
-
createRouter(router)
-
This:
Parameters:
Name Type Description router
Object - Inherited From:
- Overrides:
- Source:
-
createSelection()
-
Attach a selection collection to the frame. A selection is a collection of attachments used for a specific purpose by a media frame. e.g. Selecting an attachment (or many) to insert into post content.
- Inherited From:
- Source:
- See:
-
- media.model.Selection
-
createSelectToolbar(toolbar [, options])
-
Toolbars
This:
Parameters:
Name Type Argument Default Description toolbar
Object options
Object <optional>
{} - Inherited From:
- Source:
-
createStates()
-
Create the default states on the frame.
- Inherited From:
- Overrides:
- Source:
-
createTitle(title)
-
This:
Parameters:
Name Type Description title
Object - Inherited From:
- Overrides:
- Source:
-
createToolbar(toolbar)
-
This:
Parameters:
Name Type Description toolbar
Object - Inherited From:
- Overrides:
- 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:
- Overrides:
- 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:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining. -
iframeContent(content)
-
This:
Parameters:
Name Type Description content
Object - Inherited From:
- Overrides:
- 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:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining. -
remove()
-
- Inherited From:
- Overrides:
- Source:
Returns:
Returns itself to allow chaining.- Type
- wp.media.View
-
render()
-
- Inherited From:
- Overrides:
- 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:
- Overrides:
- Source:
Returns:
- Type
- void
-
setRouterTabPanelAriaAttributes()
-
Sets the attributes to be used on the router ARIA tab panel.
- Since:
-
- 5.3.0
- Inherited From:
- Overrides:
- Source:
Returns:
- Type
- void
-
triggerModeEvents()
-
Map activeMode collection events to the frame.
- Inherited From:
- Overrides:
- Source:
-
uploadContent()
-
Render callback for the content region in the `upload` mode.
- Inherited From:
- Source:
Events
-
{mode}:deactivate
-
Frame mode deactivation event.
- Inherited From:
- Overrides:
- Source: