Module: js-whatever/js/confirm-view

js-whatever/js/confirm-view

Classes

ConfirmView

Type Definitions

ConfirmViewOptions

Properties:
Name Type Argument Default Description
message string

Message to be displayed

title string

Modal title

okText string <optional>

Text for the OK button. Must be defined if showButtons or closable are set to
true

cancelText string <optional>

Text for the Cancel button. Must be defined if showButtons is set to true

okHandler function <optional>

Function called when the OK button is clicked. If showButtons is set to
true, this must be defined

cancelHandler function <optional>

Function called when the Cancel button is clicked

modalClass string <optional>

Class added to modal after rendering

cancelClass string <optional>
btn-danger

Cancel button class

cancelIcon string <optional>
icon-remove

Cancel button icon

closable boolean <optional>
true

Set to true if the modal can be closed. If show buttons is true the modal
can still be closed using the buttons

okClass string <optional>
btn-success

OK button class

okIcon string <optional>
icon-ok

OK button icon

showButtons boolean <optional>
true

Set to true if the modal should have OK and Cancel buttons

hiddenEvent string <optional>
hidden

The Bootstrap event to listen for when the modal is hidden. Override
if using Bootstrap 3

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.