[ALOY-1511] Alloy Model-View binding not working for ListItem accessoryType property.
|Labels||Alloy, model, view|
DescriptionI am trying to add alloy model view binding in Listview and as per my requirement, I need to show checkmark for list items dynamically based on business logic. I tried the below code but it doesn't show me checkmark for listitems (There is no error or warning in console), View ~~~
- Sharif AbuDarda 2016-08-02 Hello, The sample code you provided is not sufficient enough. Please provide a full reproducible code that we can test to regenerate the issue. Thanks.
- Narendra Raorane 2016-08-03 Hey Hi @sdarda, I have corrected the query. Also attaching sample .sqlite file. Hope this helps to move forward. Many Thanks! Naren
- Feon Sua Xin Miao 2017-02-23
[~narendra.raorane] the value for
accessoryTypeshould be number not text, from the code snippet you included, it seems you are trying to assign the string "Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK" to accessoryType.