Have ideas to improve npm?Join in the discussion! »

    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

    0

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar