angular-confirm

WebJar for angular-confirm

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-craftpip-angular-confirm
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-confirm
WebJar for angular-confirm
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/craftpip/angular-confirm

Скачать github-com-craftpip-angular-confirm

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-craftpip-angular-confirm/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-craftpip-angular-confirm</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-craftpip-angular-confirm/
implementation 'org.webjars.bower:github-com-craftpip-angular-confirm:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-craftpip-angular-confirm/
implementation ("org.webjars.bower:github-com-craftpip-angular-confirm:1.1.0")
'org.webjars.bower:github-com-craftpip-angular-confirm:jar:1.1.0'
<dependency org="org.webjars.bower" name="github-com-craftpip-angular-confirm" rev="1.1.0">
  <artifact name="github-com-craftpip-angular-confirm" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-craftpip-angular-confirm', version='1.1.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-craftpip-angular-confirm" % "1.1.0"
[org.webjars.bower/github-com-craftpip-angular-confirm "1.1.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : bootstrap jar [3,4)
org.webjars.bower : jquery jar [1.6,)

Модули Проекта

Данный проект не имеет модулей.

jquery-confirm

alerts, confirms and dialogs in one.

v1.1.0

Angular-confirm targets to make it really easy to use confirm dialogs with angular.
With angular-confirm you can harness the angular two-way data binding to update the content as well as make changes to the model in runtime.

A re-write of the jquery-confirm v3 plugin with all features.

  • Define multiple buttons
  • Trigger buttons on key up events
  • Beautiful themes and animations
  • All modal properties are two-way binded.
  • Do things the angular way

View detailed features here Documentation & Examples

Installation

Download the latest release here and use the files within the dist directory

via Bower:
$ bower install angular-confirm1

via NPM:
$ npm install angular-confirm1

##Basic usage

The snippet below shows the most commonly used properties, there are more to find in the docs.

angular.module('myApp', ['cp.ngConfirm'])
.controller('myController', function($scope, $ngConfirm){
    $scope.hey = 'Hello there!';
    $ngConfirm({
        title: 'What is up?',
        content: 'Here goes a little content, <strong>{{hey}}</strong>',
        contentUrl: 'template.html', // if contentUrl is provided, 'content' is ignored.
        scope: $scope,
        buttons: {   
            // long hand button definition
            ok: { 
                text: "ok!",
                btnClass: 'btn-primary',
                keys: ['enter'], // will trigger when enter is pressed
                action: function(scope){
                     $ngConfirm('the user clicked ok');
                }
            },
            // short hand button definition
            close: function(scope){
                $ngConfirm('the user clicked close');
            }
        },
    });
});

Demo and Documentation

See Detailed Docs + Example here.

Issues

Please post issues and feature request here Github issues

Version changes

(coming in 1.11.0)

  • remove jquery as dependency

(new in 1.1.0)

  • Major performance fixes
  • Fix memory leaks
  • Removed ngAnimate and ngSanitize as dependencies
  • added set methods to modal
  • watchInterval property removed, content watch is now done with $digest
  • button functions added
  • theme fixes
  • onScopeReady callback added

(new in 1.0.1)

  • Added project to bower

Copyright and license

Copyright (C) 2016 angular-confirm

Licensed under the MIT license.

Версии библиотеки

Версия
1.1.0