1.4.2 • Published 5 years ago

md-form-confirm v1.4.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Guaranteed Less Loss =)

Angular Material module Confirm form loss

IMG

on npm

Dependencies

Download make the dependencies of mdFormConfirm and include in your project

Installation

$ npm install md-form-confirm --save

Result

IMG

Module AngularJS include

require('angular');

angular.module('Requisition', [
  require('angular-animate'),
  require('angular-material'),
  require('md-form-confirm') //Component Injection
])

Implementation

<form name="joyForm" ctrl="prettyCrazyController" obj="model" native-confirm="true" form-control="prettyCrazyController.enableConfirm" ng-submit="prettyCrazyController.save()">
  <input name="code" ng-model="prettyCrazyController.model.code">
  <md-button type="submit" ng-disabled="!joyForm.$valid || !joyForm.$isChanged()">SAVE</md-button>
</form>

Parameters

NameTypeDinamicMandatoryDescription
nameStringfalsetrueForm Name
ctrlStringfalsetrueController Name
objStringfalsetrueName of the model object (assigned to the form)
native-confirmBooleantruefalsePut a validation message on the screen preventing the screen from being reloaded
form-controlBooleantruetrueControls wether the feature will be on or off
form-confirm-rejectFunctiontruefalseBinds function to be executed if confirmation popup gets canceled
$isChangedMethodtruefalseMethod assigned to the form, tells if it has been changed (can be accessed in the view)
$updateChangedMethodtruefalseMethod that updates the status of unmodified form

Development

Edit version.js and run the command below:

$ npm run build

Metrics

Throughput Graph

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago