SMART datagrid v1.4 > Classes > CellStyle

Back  Forward

DataLudi.CellStyle.CellStyle  constructor

CellStyle 생성자. 

설정 객체를 이용해서 GridBase.registerCellStyleregisterCellStyles을 통해 생성되고 등록되므로 이 객체를 직접 생성할 일은 없다. 

function CellStyle (id: String, source: Object);
Returns
Void
Parameters
id - String. required.
source - Object. required.
Code -1
    grid.registerCellStyle('style01', {
        "background": "#880000",
        "color": "#ffffff"
    });
    grid.registerCellStyles([{
        id: 'style02', 
        background: "#000088",
        color: "#ffffff"
    }, {
        id: 'style03', 
        background: "#ffff00",
        color: "#ff0000"
    }]);
See Also
editable
readOnly
button
GridBase.registerCellStyle
GridBase.registerCellStyles
GridBase.setCellStyle
GridBase.setCellStyles
GridBase.setCellStyleRows
GridBase.clearCellStyles
Examples
CellStyles
Readony & Editable