2.0.1 • Published 9 years ago

gaffa-remove v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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.