bopoda / ace

Twitter bootstrap 3 admin template
ace.jeka.by
Other
3.76k stars 1.84k forks source link

Values of checkbox not working #33

Open kennico opened 6 years ago

kennico commented 6 years ago

The checkbox displays a string of "YES" or "NO" instead of one of my values.

This is my code snippet in index.html.

{name: "status", index: "status", width: 50, sorttype: "text", editable: true, edittype:"checkbox", 
editoptions: {value:"True:False"}, unformat: aceSwitch
}

The code of aceSwitch remains unchanged.

function aceSwitch( cellvalue, options, cell ) {
setTimeout(function(){
$(cell) .find('input[type=checkbox]')
            .addClass('ace ace-switch ace-switch-5')
    .after('<span class="lbl"></span>');
}, 0);
}