Last active
September 25, 2019 17:46
-
-
Save rjdestigter/e537a4eea01016b07c978b6288f33231 to your computer and use it in GitHub Desktop.
TodoItem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TodoItem | |
Complete | |
uncheck -> Incomplete | |
Incomplete* | |
check -> Complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model) { | |
return $('input', { type: 'checkbox', checked: model.active_state === 'Complete' }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment