Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

gaffa-remove

2.0.1 • Public • Published

gaffa-remove

Remove action for gaffa. Remove a value from the model.

Install:

npm i gaffa-remove

Add to gaffa:

var Remove = require('gaffa-remove');

gaffa.regeisterConstructor(Remove);

Usage:

var remove = new Remove();
remove.target.binding = '[number]';

// ... Assign the remove action to be triggered by another viewItem

API

Properties (instanceof Gaffa.Property)

target (remove)

The location to remove the data

DEPRECATED. Use action.target.cleans instead. cleans (get) default: false

Whether to mark the target model location as clean.

Install

npm i gaffa-remove

DownloadsWeekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • avatar