Class: ShareUrlView

ShareUrlView()

UI for copying the shareable URL to user's clipboard.

Screenshot

Constructor

new ShareUrlView()

Since:
  • 2.30.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

events :object

The events this view will listen to and the associated function to call.
Type:
  • object
Source:

template :Underscore.template

The primary HTML template for this view
Type:
  • Underscore.template
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

copyToClipboard()

Attempt to copy the input text to the user's clipboard. Note that this will fail for a variety of reasons, including if the site is served via HTTP.
Source:

getInput() → {jQuery}

Get the readonly input element.
Source:
Returns:
Element wrapping the input field.
Type
jQuery

initialize(An)

Run when a new ShareUrlView is created.
Parameters:
Name Type Description
An ShareUrlViewOptions object specifying configuration options for the view.
Source:

render()

Render the view by updating the HTML of the element.
Source:

showErrorText(text)

Show the user some additional information via an error hint.
Parameters:
Name Type Description
text string The text to display.
Source:

showHintText(text)

Show the user some additional information via a hint.
Parameters:
Name Type Description
text string The text to display.
Source:

triggerBodyClick()

Click the body element using jQuery to trigger the removal function of this Backbone.View.
Source: