将转换器绑定到计算表达式
Binding transformers to calculated expressions
我想在我的一个小部件绑定上应用#formatNumber 绑定表达式,即:
@datasource.item.quantity * @datasource.item.price
我尝试应用一些用法,例如:
(@datasource.item.quantity * @datasource.item.price)#formatNumber
[@datasource.item.quantity * @datasource.item.price]#formatNumber
有什么办法吗?
Google 中的旅行批准模板应该可以满足您的需求。如您在模板中所见,它在绑定表达式中使用客户端脚本将仪表板上的日期格式化为 ISO 格式。
我想在我的一个小部件绑定上应用#formatNumber 绑定表达式,即:
@datasource.item.quantity * @datasource.item.price
我尝试应用一些用法,例如:
(@datasource.item.quantity * @datasource.item.price)#formatNumber
[@datasource.item.quantity * @datasource.item.price]#formatNumber
有什么办法吗?
Google 中的旅行批准模板应该可以满足您的需求。如您在模板中所见,它在绑定表达式中使用客户端脚本将仪表板上的日期格式化为 ISO 格式。