Component Configuration

All Components accept flexible config objects during initialization.

Old way:

// default creation:
var foo = new Bar(123, 'red', true);

// only need 3rd param:
var foo2 = new Bar(null, null, true);

Using a config object:

//default creation:
var foo = new Bar({
    count: 123,
    color: 'red',
    isNew: true
});

//only need 3rd param:
var foo2 = new Bar({
    isNew: true
});