Google app maker 将转换器绑定到计算表达式
我想在我的一个小部件绑定上应用#formatNumber绑定表达式,即:Google app maker 将转换器绑定到计算表达式,google-app-maker,Google App Maker,我想在我的一个小部件绑定上应用#formatNumber绑定表达式,即: @datasource.item.quantity * @datasource.item.price 我尝试应用一些用法,如: (@datasource.item.quantity * @datasource.item.price)#formatNumber [@datasource.item.quantity * @datasource.item.price]#formatNumber 有
@datasource.item.quantity * @datasource.item.price
我尝试应用一些用法,如:
(@datasource.item.quantity * @datasource.item.price)#formatNumber
[@datasource.item.quantity * @datasource.item.price]#formatNumber
有什么办法吗?谷歌的旅行审批模板应该能满足您的需要。正如您在模板中看到的,它使用绑定表达式中的客户端脚本将仪表板上的日期格式化为ISO格式。如果您的表达式很复杂,则不要绑定表达式,而是绑定Javascript函数。在函数中执行计算并从函数返回值。