Toggle button

I want to use the toggle button (highlighted below) in my user interface - similar to that used in the Profile Settings --> Email notifications interface.

Is this available anywhere or on the Appmarket?

Thanks!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    a!localVariables(
    local!a:true,
    a!cardLayout(
    contents:{
    a!richTextDisplayField(
    value:a!richTextIcon(
    icon: "toggle-off",
    color:"ACCENT",
    size:"MEDIUM_PLUS",
    link: a!dynamicLink(
    saveInto: a!save(local!a,false)
    ),
    linkStyle: "STANDALONE"
    ),
    showWhen:toboolean(local!a)
    ),
    a!richTextDisplayField(
    value:a!richTextIcon(
    icon: "toggle-on",
    color:"ACCENT",
    size:"MEDIUM_PLUS",
    link: a!dynamicLink(
    saveInto: a!save(local!a,true)
    ),
    linkStyle: "STANDALONE"
    ),
    showWhen:toboolean( local!a)= false
    ),
    }
    )

    )

    use this code for toggle button

Reply
  • 0
    Certified Senior Developer

    a!localVariables(
    local!a:true,
    a!cardLayout(
    contents:{
    a!richTextDisplayField(
    value:a!richTextIcon(
    icon: "toggle-off",
    color:"ACCENT",
    size:"MEDIUM_PLUS",
    link: a!dynamicLink(
    saveInto: a!save(local!a,false)
    ),
    linkStyle: "STANDALONE"
    ),
    showWhen:toboolean(local!a)
    ),
    a!richTextDisplayField(
    value:a!richTextIcon(
    icon: "toggle-on",
    color:"ACCENT",
    size:"MEDIUM_PLUS",
    link: a!dynamicLink(
    saveInto: a!save(local!a,true)
    ),
    linkStyle: "STANDALONE"
    ),
    showWhen:toboolean( local!a)= false
    ),
    }
    )

    )

    use this code for toggle button

Children