Class: ConfirmView

js-whatever/js/confirm-view. ConfirmView

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
element

The element which has been clicked

handler

The 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:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.