SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.pasteBooleanFormat  property

The format which will convert the string of clipboard to BOOLEAN field value when run pasting. 

Defaults to null.

Getter
function pasteBooleanFormat(): String
Setter
function setPasteBooleanFormat(value: String)
Code -1
    grid.setOptions({
        edit: {
            pasteBooleanFormat: "No,Male,0:Yes,Female,1:x,X",
            pasteDatetimeFormat: ["yyyyMMdd", "yyyy-MM-dd"]
        }
    });
Code -2
    grid.setEditOptions({
        pasteBooleanFormat: "No,Male,0:Yes,Female,1:x,X",
        pasteDatetimeFormat: ["yyyyMMdd", "yyyy-MM-dd"]
    });
Code -3
    grid.pasteOptions().setBooleanFormat("No,Male,0:Yes,Female,1:x,X");
See Also
pasteDatetimeFormat
pasteNumberChars
Examples
Clipboard Paste
Clipboard Copy