Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20601

Windows: Support bindId property on ListView

    Details

    • Story Points:
      8
    • Sprint:
      2016 Sprint 07 SDK

      Description

      It's affected 5.2.0. On windows phone event.bindId always 'undefined' in itemclick handler. So I need opportunity to determine when user clicks specific elements inside listview item.
      It's working fine on ios and android:

      index.js:

      $.section.setItems([
      	{ info: { text: 'edit' }}
      ]);
       
      function onItemclick(e) {
          if(e.bindId == 'editButton') {
          	alert('editButton');
          } else {
              alert('something else...');
          }
      }
       
      $.win.open();
      

      index.xml:

      <Alloy>
          <Window id='win' backgroundColor="green">
      		 <ListView id="listView" defaultItemTemplate="template" onItemclick="onItemclick">
       
                  <Templates>
                      <ItemTemplate name="template">
                      	<View width='Ti.UI.FILL' height='50dp' backgroundColor='red'>
                      		<View bindId='editButton' backgroundColor='yellow' width='120dp' height='30dp' right='5dp'>
                      			<Label bindId="info" width='Ti.UI.SIZE' id="title" />
                      		</View>
                      	</View>
                      </ItemTemplate>
                  </Templates>
       
                  <ListSection id='section' headerTitle="Fruit / Frutas" />
              </ListView>
          </Window>
      </Alloy>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                zozo4kin Zakhar Zhuravlev
                Reviewer:
                Christopher Williams
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-7073
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code