SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.booleanFormat  property

The string conversion format which is used when display the value of Boolean field in data cell. 

It specifies conversion strings with colon(:) or semicolon(;) in the case of false, true, undefined. The value which has not been specified will be displayed by being converted to "false", "true", "" respectively. 

Getter
function booleanFormat(): String
Setter
function setBooleanFormat(value: String)
Code -1
    column.styles().setBooleanFormat('No;Yes;Unknown');
    // You do not have to define undefined part.
    column.styles().setBooleanFormat('Unpaid;Paid');
See Also
textFormat
datetimeFormat
numberFormat
Styles Overview
Examples
BooleanValue
Column Styles