Class: ImageDetails

wp.media.controller. ImageDetails


new ImageDetails( [attributes])

wp.media.controller.ImageDetails A state for editing the attachment display settings of an image that's been inserted into the editor.
Parameters:
Name Type Argument Description
attributes object <optional>
The attributes hash passed to the state.
Properties
Name Type Argument Default Description
id string <optional>
image-details Unique identifier.
title string <optional>
Image Details Title for the state. Displays in the frame's title region.
image wp.media.model.Attachment The image's model.
content string | false <optional>
image-details Initial mode for the content region.
menu string | false <optional>
false Initial mode for the menu region.
router string | false <optional>
false Initial mode for the router region.
toolbar string | false <optional>
image-details Initial mode for the toolbar region.
editing boolean <optional>
false Unused.
priority int <optional>
60 Unused.
Source:
To Do:
  • This state inherits some defaults from media.controller.Library.prototype.defaults, however this may not do anything.

Extends

Methods


activate()

Since:
  • 3.9.0
Overrides:
Source:

constructor()

Constructor.
Since:
  • 3.5.0
Inherited From:
Source:

<abstract> deactivate()

Deactivate event callback.
Since:
  • 3.5.0
Inherited From:
Source:

initialize(options)

Parameters:
Name Type Description
options Attributes
Since:
  • 3.9.0
Source:

<abstract> ready()

Ready event callback.
Since:
  • 3.5.0
Inherited From:
Source:

<abstract> reset()

Reset event callback.
Since:
  • 3.5.0
Inherited From:
Source: