SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.fontSize  property

将被用作单元格编辑器的字体大小的值,指定为包含CSS单位的格式。 

如果将个别编辑器的fontSize设置为非空的值,就会忽视这个属性。 通过fontName,指定字体名称。 

默认值为"10pt".

Getter
function fontSize(): String
Setter
function setFontSize(value: String)
Code -1
    grid.setOptions({
        edit: {
            fontSize: '11pt',
            fontName: 'Courier New'
        }
    });
Code -2
    grid.setEditOptions({
        fontSize: '11pt',
        fontName: 'Courier New'
    });
Code -3
    grid.editOptions().setFontSize('11pt');
See Also
CellEditor.fontSize
fontName
Examples
单元格编辑