【问题标题】:How to make parts of an Appian label clickable?如何使 Appian 标签的某些部分可点击?
【发布时间】:2021-09-06 23:01:43
【问题描述】:

在我的 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 的冗长解决方案?

【问题讨论】:

    标签: appian


    【解决方案1】:

    没有可用于配置指向任何组件标签的链接的功能。

    是的,您需要使用如下富文本组件:

     {
      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: {})
    }
    

    用户界面截图:

    此外,通过富文本组件,您可以调整文本的大小、颜色和样式。

    我希望,这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-20
      • 2012-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-02
      相关资源
      最近更新 更多