NappAppearance
NappAppearance copied to clipboard
Popover not working
Looks like popover tintColor and backgroundImage properties are not working.
Using Titanium 4.0.0.GA. iOS 8.3. iPad 2 simulator.
Here's the sample code:
var customAppearance = require('dk.napp.appearance');
customAppearance.setGlobalStyling({
popOver : {
tintColor: 'yellow',
backgroundImage:"/image/test.png",
}
});
var rightButton = Ti.UI.createButton({title: 'Robin'});
rightButton.addEventListener('click', function(e){
alert("But green's the color of spring.");
});
var contentWindow = Ti.UI.createWindow({
backgroundColor: 'green',
rightNavButton: rightButton,
title: 'Kermit',
width: 250,
height: 100
});
contentWindow.add(Ti.UI.createLabel({text: "It's not easy being green."}));
var popover = Ti.UI.iPad.createPopover({
width: 250,
height: 100,
contentView: Ti.UI.iOS.createNavigationWindow({window: contentWindow})
});
popover.show();