如何使用复合卡片下巴链接到外部URL [英] How do I link to an external URL using a compound card chin
本文介绍了如何使用复合卡片下巴链接到外部URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在文档中说,可以使用复合卡片下巴链接/打孔到外部URL.但是,当我尝试这样的事情时:
In the documentation it says one can use a compound card chin to link/punch out to an external URL. However when I try something like this:
chin {
url {
template ("#{value (model.webUrl)}")
}
}
它不起作用.如何获得带有指向外部URL的链接的下巴?
it doesn't work. How can I get a chin with a link to an external URL working?
推荐答案
要使用Chin打孔,您需要添加以下内容:
To use a Chin punch out, you need to add the following:
-
content
- 具有URL链接值的插槽
因此,以下方法将起作用:
So the following would work:
render {
layout {
section {
content {
compound-card {
content {
single-line {
text {
value {
template ("Click below to Punch Out")
}
}
}
}
chin {
slot1 {
single-line {
text {
value {
template ("Link to Google")
}
}
}
}
url {
template ("http://www.google.com")
}
}
}
}
}
}
}
这篇关于如何使用复合卡片下巴链接到外部URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文