@ovh-ux/ng-ovh-ui-confirm-modal
v2.1.2
Published
Simple confirmation modal
Downloads
77
Readme
ng-ovh-ui-confirm-modal
Simple confirmation modal
Install
yarn add @ovh-ux/ng-ovh-ui-confirm-modal
Usage
import angular from 'angular';
import ngOvhUiConfirmModal from '@ovh-ux/ng-ovh-ui-confirm-modal';
angular.module('myApp', [ngOvhUiConfirmModal]);
<div data-ng-controller="XdslModemResetCtrl as ResetCtrl">
<button
<!--
data-ng-really-click: This parameter is required.
`resetModem()` will be called if you accept the confimation message.
-->
data-ng-really-click="ResetCtrl.resetModem()"
<!--
data-ng-really-undo: This parameter is optional
`undo()` will be called if you cancel the confimation message.
data-ng-really-undo="ResetCtrl.undo()"
-->
data-ng-really-message="{{ 'xdsl_modem_reset_really' | translate }}"
data-ng-really-confirm="{{ 'ok' | translate }}"
data-ng-really-cancel="{{ 'cancel' | translate }}">
</button>
</div>
Test
yarn test
Contributing
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.
License
BSD-3-Clause © OVH SAS