sencha-touch

Icon for sencha touch tabpanel tabs

帅比萌擦擦* 提交于 2019-12-04 16:48:29
I have a tabpanel in sencha touch that looks something that below Mobile.RootViewport = new Ext.TabPanel({ fullscreen:'true', layout: 'card', tabBarDock: 'bottom', items: [Mobile.HomeViewport, Mobile.AboutViewport] }) How do i have a icon for each of the tabs? You need to add an iconCls property to each of the items within your TabPanel (HomeViewport, AboutViewport, etc). There are a handfull of icons compiled into the default theme, but there are many more in the pictos directory (found at $touch/resources/themes/images/default/pictos/ ). The iconCls name will be the same as the filename

jQuery Mobile Vs Sencha Touch [closed]

半腔热情 提交于 2019-12-04 16:13:13
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am planning to create a mobile or rather a tablet version of my existing web app. The devices supported would be iPad, Xoom (android

Change color of Sencha Touch Ext.TabPanel

社会主义新天地 提交于 2019-12-04 14:37:17
问题 new Ext.TabPanel({ fullscreen: true, cardSwitchAnimation: 'slide', ui: 'dark', items: [home, about] }); For the ui , can I specify like, a color instead of dark and light? How can I make it a specific color or background image of our choice? Thanks. 回答1: What you need to do is to define a new ui type using SASS and COMPASS. So, you have to be familiar with these frameworks. If you already install these, and you already know how to create you application theme CSS, then you can add the

Sencha list scrolling with keyboard

无人久伴 提交于 2019-12-04 14:16:57
问题 I am using sencha list in my application. It is a scrollable list. I want to scroll the list by up , down key and hand gesture in keyboard. Does anyone know how to do it? Please help me. This is my code: { xtype: 'list', pinHeaders: false, variableHeights: false, itemTpl: '<div>' + '<div>{name}</div>' + '</div>', store: 'myStore', grouped: true, onItemDisclosure: true } 回答1: Check out this fiddle https://fiddle.sencha.com/#fiddle/53t You can add a document eventlistener on keydown event in

How to properly activate an MVC View in Sencha Touch V2

我只是一个虾纸丫 提交于 2019-12-04 13:41:07
I'm running Sencha Touch V2 beta and I'm looking at the most recent documentation . I've followed the Ext.application instructions and am trying to properly lay out my MVC application. Unfortunately I can't figure out how to actually load up a View with this approach. index.js Ext.application({ name: 'rpc', defaultUrl: 'home/index', controllers: ['home'], //note: define controllers here launch: function () { console.log('Ext.application ~ launch'), Ext.create('Ext.TabPanel', { id: 'rpc-rootPanel', fullscreen: true, tabBarPosition: 'bottom', items: [{ title: 'Home', iconCls: 'home' }] }); Ext

sencha list paging plugin

北战南征 提交于 2019-12-04 13:14:01
问题 I'm trying to use sencha touch's listpaging plugin. But there is almost no good( or bad ) documentation about how to use it and i'm confused. When i activate the plugin in my list this.myList = new Ext.List({ store: this.myStore, plugins: [{ ptype: 'listpaging', autoPaging: false }], itemTpl: '...' }); a 'Load More' text and a loading image is added to the end of the list. But i don't know how to configure my store to enable this plugin to be able to load more data. App.regStore('MyStore', {

Adding video using Sencha

半腔热情 提交于 2019-12-04 12:51:13
I want to add a youtube video in my site using Sencha. I use the following code: var pnl = new Ext.Panel({ layout: { type: 'vbox', pack: 'center' }, items: [{ xtype:'video', url: "space.mp4", loop: true, width: 500, height: 400, poster: 'Screenshot.png' }], fullscreen: true }) Here I replace the space.mp4 with a youtube url but it doesn't work. If I write html:'you tube link' , it works on the browser on my system, but not on iPhone. How can I make this work? One workaround is to embed the video with the embed code (iframe) provided by youtube. Just give your component the html attribute with

Different grid layout for portrait and Landscape in bootstrap

落花浮王杯 提交于 2019-12-04 12:44:57
I am making an Android app using Sencha. I am using this layout for responsive layout in mobiles and tablets <div class="row"> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> </div> Now i also want to specify a different grid layout when i switch from portrait to landscape mode .For example,in mobile screen, i want to use col-xs-6 in portrait mode and col-xs-3 in landscape mode. So how do i do that? I've used this

Sencha Touch - scroll to last tab on TabBar

谁都会走 提交于 2019-12-04 12:03:11
There is a view with many tabs in my App. I'd like to set focus on the last one. I can set active tab this.setActiveItem(10) , but I'm not able to scroll (programmatically) tabbar to the last item. Content of the 10th tab is shown but 10th item on tabbar is hidden, so user could be confused. Thanks a lot in advance. A really good question and many people may find this useful. So first, instance of tabBar is needed so we can get activeTab of tabPanel . Then we can easily get the offset of tab item. Here, tab item means not the container that holds tab's contents but the tab indicator which can

Convert GMT time to local time

久未见 提交于 2019-12-04 12:02:54
问题 Am getting a GMT time from my server in this format Fri, 18 Oct 2013 11:38:23 GMT My requirement is to convert this time to local time using Javascript, eg:/ if the user is from India, first i need to take the time zone +5.30 and add that to my servertime and convert the time string to the following format 2013-10-18 16:37:06 I tried with following code but not working var date = new Date('Fri, 18 Oct 2013 11:38:23 GMT'); date.toString(); Please help me to solve this issue, Thanks in advance