1. #1
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    Ostrava, Czech Republic
    Posts
    43
    Vote Rating
    2
    ostghost is on a distinguished road

      0  

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

    Unanswered: 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. Don´t ask me why. It´s 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? I´m 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 it´s 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Answers
    3500
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    First, are you wanting to use Ext JS on mobile device? If so then you should use Sencha Touch instead.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    Ostrava, Czech Republic
    Posts
    43
    Vote Rating
    2
    ostghost is on a distinguished road

      0  

    Default Mobile devices.

    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. I´ll 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Answers
    3500
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The main issue you will have is scrolling though
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread