new ConfirmView(config)
Creates a Bootstrap modal which presents a message and the option to click OK and Cancel. By default it
uses Bootstrap 2 classes, but can be overridden for Bootstrap 3
Parameters:
| Name | Type | Description |
|---|---|---|
config |
ConfirmViewOptions |
- Source:
Extends
- Backbone.View
Members
-
className
-
{string} Initial classes for the modal
- Source:
-
template
-
{function} Default template, which can be overridden
- Source:
Methods
-
<protected> handleButton(element, handler)
-
Calls a handler function with a given element as the context
Parameters:
Name Type Description elementThe element which has been clicked
handlerThe handler function
- Source:
-
remove()
-
Hides the modal and removes it from the DOM
- Source:
-
render()
-
Renders the modal and add listeners to the buttons. Links with the class 'route' will cause the modal
to hide.- Source: