@ovh-ux/ng-ovh-ui-confirm-modal

2.1.1 • Public • Published

ng-ovh-ui-confirm-modal

Simple confirmation modal

npm version Downloads Dependencies Dev Dependencies

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @ovh-ux/ng-ovh-ui-confirm-modal

    Weekly Downloads

    1

    Version

    2.1.1

    License

    BSD-3-Clause

    Unpacked Size

    27.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • jisay
    • blary_jp
    • antleblanc
    • cbourgois
    • ovh-ux-cds
    • lizardk
    • ovh
    • marie-j