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.

Dependents (0)

Package Sidebar

Install

npm i gaffa-remove

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • korynunn