Carousel in Appian

Certified Associate Developer

Is is possible to create an interface where there is a carousel list for images, cards, etc. ?

Refer to the image above.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    a!localVariables(
      local!map: {
        a!map(style: "#7b83e3"),
        a!map(style: "#87e37b"),
        a!map(style: "#e37bdc"),
        a!map(style: "#e3cc7b")
      },
      local!carouselCount: 1,
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: a!richTextDisplayField(
              value: {
                char(10),
                a!richTextIcon(
                  icon: "angle-left-bold",
                  size: "EXTRA_LARGE",
                  link: a!dynamicLink(
                    value: local!carouselCount - 1,
                    saveInto: local!carouselCount
                  ),
                  linkStyle: "STANDALONE",
                  color: "SECONDARY",
                  showWhen: local!carouselCount>1
                )
              },
              align: "CENTER",
              marginAbove: "EVEN_MORE"
            )
          ),
          a!columnLayout(
            contents: a!cardLayout(
              contents: {},
              height: "MEDIUM",
              style: index(
                local!map.style,
                local!carouselCount,
                null
              ),
              showBorder: true,
              padding: "STANDARD",
              shape: "ROUNDED",
              decorativeBarColor: "ACCENT",
              decorativeBarPosition: "BOTTOM",
              borderColor: "WARN"
            ),
            width: "5X"
          ),
          a!columnLayout(
            contents: a!richTextDisplayField(
              value: {
                char(10),
                a!richTextIcon(
                  icon: "angle-right-bold",
                  size: "EXTRA_LARGE",
                  link: a!dynamicLink(
                    value: local!carouselCount + 1,
                    saveInto: local!carouselCount
                  ),
                  linkStyle: "STANDALONE",
                  color: "SECONDARY",
                  showWhen: not(length(local!map)=local!carouselCount)
                )
              },
              align: "CENTER",
              marginAbove: "EVEN_MORE"
            )
          )
        }
      )
    )

Reply
  • 0
    Certified Associate Developer

    a!localVariables(
      local!map: {
        a!map(style: "#7b83e3"),
        a!map(style: "#87e37b"),
        a!map(style: "#e37bdc"),
        a!map(style: "#e3cc7b")
      },
      local!carouselCount: 1,
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: a!richTextDisplayField(
              value: {
                char(10),
                a!richTextIcon(
                  icon: "angle-left-bold",
                  size: "EXTRA_LARGE",
                  link: a!dynamicLink(
                    value: local!carouselCount - 1,
                    saveInto: local!carouselCount
                  ),
                  linkStyle: "STANDALONE",
                  color: "SECONDARY",
                  showWhen: local!carouselCount>1
                )
              },
              align: "CENTER",
              marginAbove: "EVEN_MORE"
            )
          ),
          a!columnLayout(
            contents: a!cardLayout(
              contents: {},
              height: "MEDIUM",
              style: index(
                local!map.style,
                local!carouselCount,
                null
              ),
              showBorder: true,
              padding: "STANDARD",
              shape: "ROUNDED",
              decorativeBarColor: "ACCENT",
              decorativeBarPosition: "BOTTOM",
              borderColor: "WARN"
            ),
            width: "5X"
          ),
          a!columnLayout(
            contents: a!richTextDisplayField(
              value: {
                char(10),
                a!richTextIcon(
                  icon: "angle-right-bold",
                  size: "EXTRA_LARGE",
                  link: a!dynamicLink(
                    value: local!carouselCount + 1,
                    saveInto: local!carouselCount
                  ),
                  linkStyle: "STANDALONE",
                  color: "SECONDARY",
                  showWhen: not(length(local!map)=local!carouselCount)
                )
              },
              align: "CENTER",
              marginAbove: "EVEN_MORE"
            )
          )
        }
      )
    )

Children
No Data