Blox widget On click

Comments

2 comments

  • Avatar
    Nathan Giusti

    Hey Larry, 

     

    I think you may need to change window.top.location to window.location.href 

     

    Cheers,

    Nathan

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Larry,

    Try this script.  It uses the standard BloX OpenURL action and will build and style a web page opening button.  To try it create a new BloX widget and replace all the Editor pane script with this script.  You can change the target parameter if you want to open in a different window, etc.  _self opens in same window.  This should allow you to navigate to another dashboard by clicking the button.  You can add additional action blocks to add more buttons with additional URL's if you want to build a navigation page with buttons.

    Hope this helps,  Jim

    {
    "style": "",
    "script": "",
    "title": "",
    "showCarousel": true,
    "carouselAnimation": {
        "showButtons": false
    },

    "actions": [
    {
    "type": "Action.OpenUrl",
    "style": {
    "color": "#3794de",
    "fontWeight": "default",
    "backgroundColor": "#ffff",
    "border-style": "solid",
    "border-color": "#3794de",
    "border-radius": "1px",
    "border-width": "1px"
    },
    "title": "Sisense Labs",
    "target": "_self",
    }
    ]
    }

     

    0
    Comment actions Permalink

Please sign in to leave a comment.