SMART datagrid v.1 > Classes > DLBase

Back  Forward

DataLudi.DLBase.setProperties  method

It changes existing values with property values which have been specified as JSON object or array in parameter props

When property setting order is important, it can specify as array, and should have [Property name, Value, Name, Value, ...] form. 

This method returns this. And, in each property name, you can specify property path which is separated by "." as below. 

function setProperties (props: Object, raiseError: Boolean): this;
Returns
this
Parameters
props - Object. required.
raiseError - Boolean. Defaults to false.
Code -1
    grid.setProperties({
        'header.height': 50,
        'footer.height': 30
        'checkBar.visible': false
    });

    // If the order is important, it will transfer as array.
    grid.setProperties([
        'header.height', 50,
        'footer.height', 30
        'checkBar.visible', false
    ]);
See Also
setProperty
getProperty
getProperties
assign
SMART datagrid Class System
Examples
Hello Grid
Hello Tree