After clicking image it want to redirect to anthoer page as dynamically.

Hi webix Team

we are getting image and image tooltip from json data as usually if we click image it want to be redirect to anthoer page that url also we want to get from json data.

webix.protoUI({
name: "mainLogo",
setValue:function(value){
this.setHTML('

image

');
}
}, webix.ui.label)

{view:"mainLogo", id:"LOGO", tooltip:true, click:true}

if (cntrl == 'LOGO' && $$(cntrl)){
$$(cntrl).define("tooltip",topBarItems[i].TOOLTIP);
$$(cntrl).define("click",topBarItems[i].URL);
}

here we are getting tooltip from json data, as usually we want get click function from json data

Thanks in advance

Regards
Deepak

Tagged:

Comments

  • webix.protoUI({
    name: "PCLOGO",
    setValue:function(value){
    this.setHTML('

    image

    ');
    }
    }, webix.ui.label);

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion