Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Values of checkbox not working #33

Open
kennico opened this issue Nov 17, 2017 · 0 comments
Open

Values of checkbox not working #33

kennico opened this issue Nov 17, 2017 · 0 comments

Comments

@kennico
Copy link

kennico commented Nov 17, 2017

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);
}
@kennico kennico changed the title Setting values of checkbox not working Values of checkbox not working Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant