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


<private> [undefined]()

Inherited From:
Source:

<private> _deactivate()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _menu()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _postActivate()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _preActivate()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _ready()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _renderMenu(view)

Create a view in the media menu for the state.
Parameters:
Name Type Description
view media.view.Menu The menu view.
Since:
  • 3.5.0
Inherited From:
Source:

<private> _renderTitle()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _router()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _title()

Since:
  • 3.5.0
Inherited From:
Source:

<private> _updateMenu()

Since:
  • 3.5.0
Inherited From:
Source:

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: