Skip to Content
0

i am getting Uncaught TypeError error while using LightBox control?

Jan 17, 2017 at 12:43 PM

39

avatar image

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" })

});

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
siyad kv Jan 23, 2017 at 05:10 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded