在我的Appian界面中,我有一个section layout,我想要标签的一部分,即"End of Month"是可点击的:
{
a!sectionLayout(
label: "Report ""End of Month""",
contents: { [...] }
)
}我想过使用link component,但以下命令不起作用(它给了我一个冗长且难以阅读的标签):
{
a!sectionLayout(
label: {
concat("Report ",
a!linkField(
label: "",
links: a!safeLink(
label: "End of Month",
uri: "http://the-full-url-pointing.to/end_of_month"
)
)
},
contents: { [...] }
)
}是否有在部分布局的label中使用Rich Text Component的冗长解决方案?
发布于 2021-08-10 23:28:05
没有可用于配置指向任何组件标签的链接的功能。
是的,您需要使用Rich Text组件,如下所示:
{
a!richTextDisplayField(
value: {
a!richTextItem(
text: "Report ",
style: "STRONG",
size: "MEDIUM_PLUS"
),
a!richTextItem(
text: "End of Month",
style: "STRONG",
size: "MEDIUM_PLUS",
link: a!safeLink(
/*label: "End of Month",*/
uri: "http://the-full-url-pointing.to/end_of_month"
)
)
}
),
a!sectionLayout(contents: {})
}UI屏幕截图:

此外,使用富文本组件,您可以调整文本的大小、颜色和样式。
我希望,这会有所帮助。
https://stackoverflow.com/questions/68098999
复制相似问题