PDA

View Full Version : Working with cards and tabs



cd.sencha
28 Feb 2012, 5:18 AM
Hi there, I'm making a GUI for an APP that scans documents.

I have 2 questions, not so complicated I think...

In the content section, where data changes dynamically, I have 2 columns, the left one separated in 2 rows and the right one with a Tab Panel.

http://imgx.gxzone.com/images/c/f/cf9cf0a5bf1.gif


The thing is that Data fields must change with every Nav Tree selection.

For example, if I selec ID, I will have to attach ID scan image and some data like Address, Name, Surname, etc.

If I select Service, I will have to attach a Service bill and data related to that.

The questions here:

Do you recommend making the entire container (which contains navtree, data input and scanned image) with card layout?

Otherway, can I link 2 cards in the same link? So if I click ID in the nav tree it will change views to DataInput=ID and ImageUpload=ID cards.

Thanks a lot, i'm newbie at this.

cd.sencha
28 Feb 2012, 5:24 AM
Well never mind, I figured out it is indeed possible:

http://dev.sencha.com/deploy/ext-4.0.0/examples/layout-browser/layout-browser.html

That is exactly what i'm looking for... but a clue on how to do it will not be rejected :P

aconran
28 Feb 2012, 12:58 PM
Yes making both card layouts will work.

Do you need anything else to complete what you're working on?

cd.sencha
29 Feb 2012, 4:11 AM
Hi, not by the moment, unleast you have a link to a tutorial where the code for making it is.

I was looking at the code on the page I linked but still have some doubts, for example, detailEl seems to not be initialized or set as card layout...

Thanks a lot.