SMART datagrid v.1 > Classes > DLBase

Back  Forward

DataLudi.DLBase.getProperty  method

It gets the property value by property name. 

In the property name, you can specify the path which is separated by "." as the example below. If parameter proxy is true, when the returned property value is the object based on DLBase, it will return as JSON object in which contains property values instead of actual object. 

function getProperty (prop: String, proxy: Boolean): *;
Returns
*
Parameters
prop - String. required.
proxy - Boolean. Defaults to false.
Code -1
    var visible = grid.getProperty('header.visible');
    var showMenu = grid.getProperty('groupPanel.head.showMenu');
See Also
setProperty
getProperties
setProperties
assign
SMART datagrid Class System
Examples
Hello Grid
Hello Tree