1. #11
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Glad your enjoying it.

    As for the naming, my local web server routes all requests for /touch/* to the most recent build folder. Im not too worried about the examples being out of the box working. The end user should be able to figure out how to change a path on their own.

  2. #12
    Sencha Premium Member RonaldBrinkerink's Avatar
    Join Date
    Feb 2009
    Location
    Haaksbergen, Netherlands
    Posts
    38
    Vote Rating
    0
    RonaldBrinkerink is on a distinguished road

      0  

    Default


    Hi Shea,

    Great work. Should be in the product I think.
    One of the items in my tabpanel is a list.
    The plugin fails on this item because it doesn't have a getLayout method.
    Should I put a panel around the list?

    Thanx, Ronald
    Last edited by RonaldBrinkerink; 16 Dec 2010 at 8:01 AM. Reason: typo

  3. #13
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    I just noticed the same thing yesterday when building a new app.

    The List Component had recently been changed to be a non-Panel based component which must now be contained within a Panel, so I'm sure there is something going on there.

    Ill take a look into what's going on.

  4. #14
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Ok, I think I have it fixed now. Give it a try, see how it works for you.

  5. #15
    Sencha User
    Join Date
    Nov 2010
    Posts
    385
    Vote Rating
    4
    gkatz is on a distinguished road

      0  

    Default


    love it!!!

  6. #16
    Sencha User
    Join Date
    Nov 2010
    Posts
    385
    Vote Rating
    4
    gkatz is on a distinguished road

      0  

    Default


    Interesting...
    swipe action on my carousel components stopped working once I added the plugin.
    My root component is a tabpanel and its cards have carousels and so I cant use the plugin as is.
    I still would love to incorporate it, what I need is to detect my 'current' view and if it includes the carousel I need to disable swipe tabs (or something like that).
    any suggestions on how to do this?

  7. #17
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    This plugin can't read your mind, it has no way to know if your swipe was meant to change tabs or move the carousel. Not sure why you expected that to work.

    With that said, I have used a carousel as the last tab in a set of tabs and that works out just fine. Once you are at the first item in the carousel, the swipe activates the tab change, otherwise it moves the carousel.

  8. #18
    Sencha User
    Join Date
    Nov 2010
    Posts
    385
    Vote Rating
    4
    gkatz is on a distinguished road

      0  

    Default


    thanks. of course this makes complete sense...
    If I can detect what is the current view I need to check the most deaply nested visible child with swipe bahavior (carousel, tabpanel w. plugin) and it should be the one 'enjoying' the swipe...
    not sure if this is feasible to implement

  9. #19
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    241
    Vote Rating
    3
    SimonFlack is on a distinguished road

      0  

    Default


    I ran into a little problem when I had a {xtype: 'map'} in one of my tabs. Everytime I swiped to move around the map I swiped to the next/previous tab.

    To temporarily solve this I added a "noswipe: true," property to the tab panel containing the {xtype: 'map'} and modified the plugin with

    Code:
    initSwipeHandlers: function(){
        this.cmp.til = this.cmp.items.length-1;
        this.cmp.items.each(function(itm, i){
          if(itm.noswipe && itm.noswipe === true){
            //Dont add swipe
          }else{
    So I can still use the plugin and swipe between tabs but the plugin is not enabled on the tab panel containing my map.
    Simon Flack
    CEO and UX Designer
    WhiteFox AS, Norway

    Web: www.whitefox.no

    Facebook: www.facebook.com/WhiteFoxAS

    Twitter: @WhiteFoxAS

  10. #20
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Thanks again Simon for your contributions, I have integrated your request, though I made a slight naming change. The noswipe config seemed a bit too much of a double negative to me, so I called it allowSwipe instead.

    https://github.com/VinylFox/Ext.ux.touch.SwipeTabs

Similar Threads

  1. Ext Designer for Touch
    By Frank R in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 11 Feb 2012, 12:53 PM
  2. Ext JS and Sencha Touch!
    By mcamer in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 1 Dec 2010, 10:19 AM
  3. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM
  4. How can I use the Ext.Msg in sencha touch?
    By bu123 in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 23 Jul 2010, 4:35 AM
  5. Ext Touch Core anyone?
    By mystix in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 11 Jun 2010, 4:52 AM

Thread Participants: 10