Constructor
new ShareUrlView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
events :object
The events this view will listen to and the associated function to call.
Type:
- Source:
template :Underscore.template
The primary HTML template for this view
Type:
- Source:
type :string
The type of View this is
Type:
- 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:
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: