Skip to Content
avatar image
Former Member

i am getting Uncaught TypeError error while using LightBox control?

This is my code for pressing image,but getting error "Uncaught TypeError: sap.m.LightBoxItem is not a constructor". Iam using sap.ui.require("sap.m.LightBoxItem") a but still also not getting the output

click:function(evt){

var e=evt.getSource().getProperty("src");

var light=new sap.m.LightBox({ imageContent:new sap.m.LightBoxItem({ imageSrc:e, title:"image",

alt:"image1" })

});

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 23, 2017 at 05:10 AM

    i am using 1.4.0 version version sap version but light box control since 1.42 version ,to resolve this library to use latest version

    Add comment
    10|10000 characters needed characters exceeded