koco-confirm-modal

1.4.6 • Public • Published

koco-confirm-modal

Confirmation modal for Knockout. Used to display a confirm/cancel modal.

Installation

bower install koco-confirm-modal

Requires koco-modaler also be instantiated within the project.

Usage with koco

The modaler must be registered, by convention in `components.js'

modaler.registerModal('confirm', {
    backdrop: 'static',
    keyboard: false,
    basePath: 'bower_components/koco-confirm-modal/src'
});

To use it:

modaler.show('confirm', {
    message: 'Are you sure you want to quit?',
    okButtonHtml: 'Quit'
});

Note: Currently the cancel button will always appear in French. Localization to come.

Readme

Keywords

Package Sidebar

Install

npm i koco-confirm-modal

Weekly Downloads

1

Version

1.4.6

License

MIT

Last publish

Collaborators

  • ozakaria-rc
  • rcguillaume
  • adruffin-rc
  • pubach
  • hugo.leclerc
  • laurentlbm-rc
  • clarose
  • vietsrc
  • matstlo
  • fcharest
  • rcmax