DataLudi Grid v.1 > Classes > CellStyleCollection

Back  Forward

CellStyleCollection.add  method

If the style is not vacant and there is not the style corresponding with id, adds new CellStyle object with the key by id and initialize as a value specified by style

function add (id: String, style: Object);

Returns
Void
Parameters
id - String. required.
style - Object. required.
Code -1
    $('#add').click(function () {
        var styles = grid.cellStyles();
    });
See Also
set
Examples