Class: ContextualLinkView

Drupal.quickedit.ContextualLinkView(options)

new ContextualLinkView(options)

Create a new contextual link view.

Parameters:
Name Type Description
options object

An object with the following keys:

Properties
Name Type Description
model Drupal.quickedit.EntityModel

The associated entity's model.

appModel Drupal.quickedit.AppModel

The application state model.

strings object

The strings for the "Quick edit" link.

Source:

Extends

  • Backbone.View

Methods

events() → {object}

Define all events to listen to.

Source:
Returns:

A map of events.

Type
object

render(entityModel, isActive) → {Drupal.quickedit.ContextualLinkView}

Render function for the contextual link view.

Parameters:
Name Type Description
entityModel Drupal.quickedit.EntityModel

The associated EntityModel.

isActive bool

Whether the in-place editor is active or not.

Source:
Returns:

The ContextualLinkView in question.

Type
Drupal.quickedit.ContextualLinkView