I am struggling trying to find a way to attach a popover to the detail disclosure system button I am using in my code. I saw the post and tried using the leftview property (which works), but the problem is that I need to use the leftView property as a leftButton for my app to work. Any ideas? ~~~ var TestContactWindowTableview = getContactDetailsFromSqlDB( evt.annotation.id ); //will contain a tableview
annotationDetailPopoverWindow.add(TestContactWindowTableview);
if (isAnnotationDetailPopOverVisible == false)
{
annotationDetailPopover.show(
{
view:evt.annotation.leftView, //view here means is relative to where popover show display
animated:true,
x:10,
y:10,
width:350,
//height:"auto",
bottom:10,
navBarHidden:false
}
); // end popover show
isAnnotationDetailPopOverVisible = "true";
}//end if isPoPOverVisible
annotationDetailPopover.add( annotationDetailPopoverWindow );
annotationDetailPopover.addEventListener('hide', function() //Let's remove the selected annotation after the popover is killed
{
isAnnotationDetailPopOverVisible = "false";
}); //end annotationDetail listener function
Your Answer
Think you can help? Login to answer this question!