Class: AttachmentsBrowser

wp.media.view. AttachmentsBrowser


new AttachmentsBrowser( [options])

wp.media.view.AttachmentsBrowser
Parameters:
Name Type Argument Description
options object <optional>
The options hash passed to the view.
Properties
Name Type Argument Default Description
filters boolean | string <optional>
false Which filters to show in the browser's toolbar. Accepts 'uploaded' and 'all'.
search boolean <optional>
true Whether to show the search interface in the browser's toolbar.
date boolean <optional>
true Whether to show the date filter in the browser's toolbar.
display boolean <optional>
false Whether to show the attachments display settings view in the sidebar.
sidebar boolean | string <optional>
true Whether to create a sidebar for the browser. Accepts true, false, and 'errors'.
Source:

Extends

Members


announceSearchResults

Updates the `wp.a11y.speak()` ARIA live region with a message to communicate the number of search results to screen reader users. This function is debounced because the collection updates multiple times.
Since:
  • 5.3.0
Source:

toolbar :wp.media.view.Toolbar

Type:
Source:

Methods


dispose()

Overrides:
Source:
Returns:
Returns itself to allow chaining.
Type
wp.media.view.AttachmentsBrowser

remove()

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