Closed tjvantoll closed 8 years ago
I would love to switch this sample to the native controls.
I do want to keep complexity down here though, so I think you’ll want to either a) wrap the checkbox code into a plugin, or b) push the complexity into a utility module so it’s out of the main flow, for example https://github.com/NativeScript/sample-Groceries/blob/master/app/shared/utils/action-bar-util.js.
Feel free to send a PR to get the ball rolling 😀
I've not done much iOS, but from what I've researched there is no native "checkbox" component. How do most iOS apps handle a list with selecting multiple items? I'm trying to think best way to create a checkbox plugin but if no checkbox on iOS then have to find a cocoapod or another alternative approach.
If I get some time I may put something together similar to your action-bar-util.js file.
Come on @tjvantoll, you know you wanna... http://bradmartin.net/2016/01/05/use-the-android-checkbox-with-nativescript/ do this instead
If I have time and you don't think it will confuse/complicate the simplistic nature of this app I'll roll something for the checkboxes to use Android checkboxes. Let me know if you think that might be too much for this sample app.