Extends
Members
className :string
The CSS class name(s) for this view's root element.
Type:
- Source:
events :object
The DOM events bound to this view.
Type:
- Source:
tagName :string
The HTML tag name for this view's root element.
Type:
- Source:
Methods
download(e)
Handles the download event when the button is clicked. Checks for
authentication and public/private access before proceeding.
Parameters:
| Name |
Type |
Description |
e |
Event
|
The click event |
- Source:
inactivate(messageopt)
Prevents the download button from being clickable and adds a tooltip
with a message explaining why.
Parameters:
| Name |
Type |
Attributes |
Description |
message |
string
|
<optional>
|
The message to display in the tooltip |
- Since:
- Source:
initialize(optionsopt)
Initializes the view with options.
Parameters:
| Name |
Type |
Attributes |
Description |
options |
object
|
<optional>
|
The options for the view
Properties
| Name |
Type |
Attributes |
Description |
model |
Backbone.Model
|
<optional>
|
The model associated with this
button |
|
- Source:
Renders the download button. Adds attributes, styles, and event listeners
based on the model and context.
- Source:
Returns:
The view instance
-
Type
-
DownloadButtonView