SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.copyBooleanFormat  property

The format which converts to string when copy the value of BOOLEAN field cell to clipboard. 

It is specified as "false:true:undefined" format. If do not specify, it will copy Boolean conversion result of JavaScript. 

Defaults to null.

Getter
function copyBooleanFormat(): String
Setter
function setCopyBooleanFormat(value: String)
Code -1
    grid.setOptions({
        edit: {
            copyBooleanFormat: "No:Yes:",
            copyDatetimeFormat: "yyyy-MM-dd hh:mm"
        }
    });
Code -2
    grid.setEditOptions({
        copyBooleanFormat: "No:Yes:",
        copyDatetimeFormat: "yyyy-MM-dd hh:mm"
    });
Code -3
    grid.copyOptions().setBooleanFormat("No:Yes:");
See Also
pasteBooleanFormat
copyDatetimeFormat
Examples
Clipboard Copy