SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.booleanFormat  property

当在数据单元格中,显示Boolean字段的值时,将会被使用的字符串转换格式。 

通过冒号(:)或分号(;),在falsetrueundefined等情况下,指定转换字符串。 未被指定的值,将会被分别转换和显示为"false""true"""。 

Getter
function booleanFormat(): String
Setter
function setBooleanFormat(value: String)
Code -1
    column.styles().setBooleanFormat('不是;是;不知道');
    // 可以不指定undefined部分。
    column.styles().setBooleanFormat('未支付;支付');
See Also
textFormat
datetimeFormat
numberFormat
样式概述
Examples
BooleanValue
列样式