Results 1 to 4 of 4

Thread: Ext.view.View right to left pagination or card layout?

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    Ostrava, Czech Republic
    Posts
    43
    Vote Rating
    3
      0  

    Question Ext.view.View right to left pagination or card layout?

    Hi,

    need to create some widgets with pagination functionality. Top, bottom toolbars. Something like Google.com image search result shown on mobile phones.

    Paging will be handled by dots. Like on e.g. Android, iOS. One dot or square per page. Dont ask me why. Its designer decision :-)

    Swiping is not required right now but maybe in the future as some user will try desktop application on tablet such request could appear.

    How to achieve this? Im not asking for solution just point me what to extend, how to start in ExtJS 4 and do it right way.

    Ext.Component with Ext.view.View? How to solve smooth paging resp. transition from right to left and vice versa?
    Or card layout with separate dataviews? How to connect them to single store?

    Basic widget could be easily extendable as there could be different content. Rows with texts and buttons, set of images etc. So different tpl for content is must.

    E.g.:
    Code:
    Ext.define('MyApp.custom.widget.MyNews', {
    	extend: 'MyApp.custom.widget.Widget',
    If its not possible in reasonable way I could paginate up & down instead of right & left. If so question is still same components to use and extend to do it rigorously.

    Best Regards

    mockup.jpg
    Last edited by ostghost; 3 Mar 2012 at 11:53 AM. Reason: Typo in title

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    First, are you wanting to use Ext JS on mobile device? If so then you should use Sencha Touch instead.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    Ostrava, Czech Republic
    Posts
    43
    Vote Rating
    3
      0  

    Default Mobile devices.

    Nope. Desktop is main platform.

    In fact http://docs.sencha.com/ext-js/4-0/#!...stom-form.html is good example what I want to achieve. Ill customize it to my needs, extend paging to show "dots" instead paging buttons etc.

    And if there will be some time will try to animate new page transition.

    Desktop is main target but sometimes comes handy to be able do some gestures on tablets. I found some topics here where others are asking about Sencha Touch 1 and Ext JS 3 or 4 combination. Maybe with Sencha Touch 2 as it has more in common with Ext JS 4 situation will be better.

    I was looking for gesture to swipe over content to load next page.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The main issue you will have is scrolling though
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •