Titanium Appcelerator Alloy TableView单击事件未在父TableView上启动
我正在构建一个应用程序,在tableview行中有一个tableview 我希望在主表视图中保留一个单击事件Titanium Appcelerator Alloy TableView单击事件未在父TableView上启动,titanium,tableview,appcelerator,Titanium,Tableview,Appcelerator,我正在构建一个应用程序,在tableview行中有一个tableview 我希望在主表视图中保留一个单击事件 <Alloy> <Collection src="orders" /> <Window onAndroidback="closeWindow" id="activeorderswindow" class="maincontainer_noactionbar"> <View class="topcontainer">
<Alloy>
<Collection src="orders" />
<Window onAndroidback="closeWindow" id="activeorderswindow" class="maincontainer_noactionbar">
<View class="topcontainer">
<ImageView class="topbackbutton" onClick="closeWindow"></ImageView>
<Label class="topheadinglabel">Aktive ordre</Label>
<ImageView class="topmenubutton" onClick="closeWindow"></ImageView>
</View>
<View class="maindatacontainer">
<TableView class="orderstable" id="activeorderstable" dataTransform="transformFunction" dataCollection="orders" dataFunction="updateUI" onDragEnd="refreshTable" >
<!-- Also can use Require -->
<TableViewRow class="activeordersrow" oid="{oid}" touchEnabled="true" >
<Label class="rowOid" text="{oid}"/>
<Label class="rowCust" text="{cust}"/>
<Label class="rowScode" text="{scode}"/>
<Label class="rowVehicle" text="{vehicle}"/>
<Label class="rowOrdertime" text="{ordertime}"/>
<ImageView class="imgOrdertime" image='/images/clock_green.png'/>
<ImageView class="imgDeadline" image='/images/clock_red.png'/>
<Label class="rowDeadline" text="{deadline}"/>
<View class="addresstablewrapper" backgroundColor="#000"/>
<TableView touchEnabled="false" scrollType="vertical" class="activeorders_addresses" data="{orders_addresses}" backgroundColor="yellow" />
</TableViewRow>
</TableView>
</View>
</Window>
主动秩序
问题是,因为我在表中有另一个表,它有自己的行(没有单击事件),所以单击main似乎不会触发
感谢您的帮助:)
谢谢
Tom也许嵌套的TableView应该具有touchEnabled=“true”,因此单击会冒泡到父级(tableviewrow) 我很少看到在另一个tableview中包含一个tableview的模式。为什么要嵌套tableview,可能是在寻找实现部分?