SMART datagrid v.1 > Classes > DLBase
DataLudi.DLBase.setProperty method
通过属性名称,新设置属性值。
该方法返回this。 而且,可以在属性名称中,指定由"."而划分的属性路径如下。
function setProperty (prop: String, value: *, raiseError: Boolean): this;
- Returns
- this
- Parameters
- prop - String. required.
- value - *. required.
- raiseError - Boolean. 默认值为false.
Code -1
grid.setProperty('header.height', 50).setFocus();
- See Also
- setProperties
- getProperty
- getProperties
- assign
- DataLudi.系统
- Examples
- Hello Grid
- Hello Tree