Comments (7)
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.
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.
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.
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.
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.
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.
Not resolved, may come back to it later.
from capstone.
Related Issues (20)
- Landscape orientation keyboard covers the comments field of addTransect HOT 1
- Cannot delete a re-listed plot observation. HOT 5
- Add Plot - allows duplicate plot naming/numbering HOT 10
- Feedback on photo preview modal HOT 3
- Disable or Hide info icon when in edit mode HOT 4
- Clicking the view behind a formview modal should dismiss it HOT 2
- Add plot observation: Search field doesn't distinguish species with multiple varieties in the english name section.
- Viewing an empty transect in plots.js causes a non-fatal database error
- Export screen is vague, needs instructions HOT 1
- Add Plot Observation Validation
- Transect Modal HOT 1
- Add Plot - Incomplete Validation (location capture) HOT 1
- Other Surveyors Field in addTransect, transectModal empty value error
- Errors are thrown after removing database regeneration lines (index.js) HOT 1
- Only allowed to select parks that are preloaded.
- Users can enter their own park name and hit done.
- Able to add a transect when error messages are visible for plot distance and surveyor name HOT 3
- Add Plot should check for > 400% plots HOT 2
- Revisiting a Site the Modal's show the red screen! App Error.
- Deleting a entry in the plot observation screen takes the table out of editing mode. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capstone.