gaffa-set

1.2.1 • Public • Published

gaffa-set

Set action for gaffa. Set a value into the model.

Install:

npm i gaffa-set

Add to gaffa:

var Set = require('gaffa-set');

gaffa.regeisterConstructor(Set);

Usage:

var set = new Set();
set.source.binding = '(+ [number] 1)';
set.target.binding = '[number]';

// Assign the set action to be triggered by another viewItem

API

Properties (instanceof Gaffa.Property)

source (get)

The data to set

target (set)

The location to set the data

clone (get) default: false

Whether to clone the value or not. Set this to true if you dont want to pass objects by reference.

cleans (get) default: false

Whether to mark the target model location as clean.

/gaffa-set/

    Package Sidebar

    Install

    npm i gaffa-set

    Weekly Downloads

    2

    Version

    1.2.1

    License

    BSD

    Last publish

    Collaborators

    • korynunn