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
conditions like authentication, public/private access, and download size
before proceeding.
Parameters:
Name |
Type |
Description |
e |
Event
|
The click event. |
- 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 |
view |
string
|
<optional>
|
The context view for this button. |
id |
string
|
<optional>
|
The ID of the button. |
model |
Backbone.Model
|
<optional>
|
The model associated with this
button. |
nested |
boolean
|
<optional>
|
Whether this button is nested. |
|
- Source:
Renders the download button. Adds attributes, styles, and event listeners
based on the model and context.
- Source:
Returns:
- Returns the view instance.
-
Type
-
DownloadButtonView