Cody Blue
Posts: 0
Joined: Sun Aug 25, 2013 2:11 am

Custom Background Image for Panel

I want to assign a custom image to a panel. When I invoke the following JS on page show, things work well when tested in Appery. However, when I test it on iOS device the background image does not show up.

Appery("panel").css('background-image', 'url('+Appery.getImagePath('image.jpg')+')');

What would you suggest?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Custom Background Image for Panel

Hi Cody.

Please try this code:

pre

//Note: you should replace "image.jpg" with your image name.
Appery("panel").css('background-image', 'url(../../../../files/views/assets/image/image.jpg)');

/pre

Regards.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Custom Background Image for Panel

Hi Cody,

Are you testing it in the browser or as build app on the device? Please give us your app public link, we'll test it on a device.

Return to “Issues”