Change backgroundImage of right Nav button in Titanium - iPhone -


i developing iphone app using titanium alloy.

my problem change backgroundimage of rightnav button.

i using rightnav button filter button. filter button placed in window has table. once filter button clicked new window opened user can make selections. once selection made, table on previous page refreshed based on selections made , change backgroundimage of rightnav button show selections have been applied. unable so.

my code :

if ((screentype === "parentwindow") {     $.rightnav.visible = true;     $.rightnav.backgroundimage = "/images/buttons/filteroff.png";        } else if ((screentype === "childwindow")) {     $.rightnav.visible = true;     $.rightnav.backgroundimage = "/images/buttons/filteron.png"; } 

the backgroundimage of rightnav button set first time , not changed. have tried make null , set again not work.

please help.

other details : titanium command-line interface, cli version 4.0.0, titanium sdk version 4.0.0.rc, mac os x 10.10

thanks

try using image property .


Comments