SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.fontSize  property

It specifies the value which will be used as font size of cell editor as the format of containing CSS unit. 

If set fontSize of individual editor as a nonempty value, this property will be ignored. You can specify the font name by fontName

Defaults to "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
Cell Editing