SMART datagrid v1.4 > Classes > DLBase

Back  Forward

DataLudi.DLBase.getProperties  method

매개변수 props 배열에 지정된 속성들의 값이 포함된 json 객체를 리턴한다. 

각 속성 이름에는 아래 예제처럼 "."로 구분되는 경로를 지정할 수 있다. 매개변수 proxytrue면 리턴되는 속성값이 DLBase 기반 객체인 경우, 실제 객체 대신 속성 값들이 포함된 json 객체로 리턴한다. 

function getProperties (props: [String], proxy: Boolean): Object;
Returns
Object
Parameters
props - [String]. required.
proxy - Boolean. 기본값은 false.
Code -1
    var header = grid.header.getProperties(['visible', 'height']);
    var visibles = grid.getProperteis(['header.visible', 'footer.visible']);
See Also
getProperty
setProperty
setProperties
assign
DataLudi Class System
Examples
Hello Grid
Hello Tree