Google Appmaker选择行 [英] Google Appmaker selectedRow
本文介绍了Google Appmaker选择行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Google appmaker table
上,我有一个label
,当用户激活/选择该行时,我只想要visible
.
On a Google appmaker table
, I have a label
that I only want visible
when the row is active/selected by the user.
我可以看到datasource.itemtIndex
会给我标签所处的当前索引(我想它不是选定的索引),但是我似乎找不到一个可以向我显示当前选定的索引/行的属性
I can see that the datasource.itemtIndex
would give me the current index that my label is at (I presume it's not the selected index), but I can not seem to find a property that shows me the currently selected index/row.
推荐答案
绑定标签的可见性,例如==>
Bind the visibility of the label like this ==>
@widget.datasource.item._key === @datasources.<DatasourceName>.item._key
只需确保使用您正在使用的任何数据源更改<DatasourceName>
.
Just make sure to change <DatasourceName>
with whatever datasource you're using.
这篇关于Google Appmaker选择行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文