Giter VIP home page Giter VIP logo

Comments (7)

kblairwhite avatar kblairwhite commented on July 24, 2024

if you put that code from the "Simple Popover with a Title and Right Button" example into the current modalClickHandler(e) in index.js you should be able to modify that to do what you want I believe.

from capstone.

dryror avatar dryror commented on July 24, 2024

I've been playing with it for about an hour. I got it to show the popOver, but I haven't been able to get it to work without errors. Doesn't seem to be very many good examples of using it in Titanium.

Would we be better of using the modalWindow and modifying it to do what we need?

from capstone.

NickGulajec avatar NickGulajec commented on July 24, 2024

Right now the functionality of the screen is probably more important than its presentation. It would be best to get modalWindow working as intended and come back to popover later.

from capstone.

NickGulajec avatar NickGulajec commented on July 24, 2024

Blair suggested replacing the modalClickHandler call with:

var wind = Ti.UI.createWindow();
popover = Ti.UI.iPad.createPopover({height:100,width:300});
popover.add(wind);
popover.show({view:e.source});

..which works, but still produces a warning about use without contentView property set being deprecated.

from capstone.

kblairwhite avatar kblairwhite commented on July 24, 2024

I updated my post you can remove the first line I don't believe you need to create a new window.
Here is it updated. Yes I get the same warning.

var view = Ti.UI.createView({backgroundColor: 'green'});
view.add(Ti.UI.createLabel({text: "It's not easy being green."}));
popover = Ti.UI.iPad.createPopover({title:e.rowData.title, height:100,width:500});
popover.add(view);
popover.show({view:e.source});

from capstone.

NickGulajec avatar NickGulajec commented on July 24, 2024

Specifying a contentView as below gets rid of the warning, but the title bar disappears.

popover = Ti.UI.iPad.createPopover({title:e.rowData.title, height:100,width:500});
var view = Ti.UI.createView({backgroundColor:'green',height:popover.height,width: popover.width});
view.add(Ti.UI.createLabel({text: "It's not easy being green."}));
popover.add(view);
popover.contentView = view;
popover.show({view:e.source});

Leaving the issue open today, but I'm shifting focus to building modalWindow.

from capstone.

NickGulajec avatar NickGulajec commented on July 24, 2024

Not resolved, may come back to it later.

from capstone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.