sencha-touch

Sencha Touch list not displaying (again!)

淺唱寂寞╮ 提交于 2019-12-07 06:54:51
问题 My Sencha Touch list isn't displaying. All I did was change the root container to a navigation view so other views can be pushed onto it, but then the navigation doesn't like having 'fit' as the root. So I moved that into another container with type 'fit'. However, now the list doesn't display?! See below: Ext.define('MyApp.view.inbox.MyInbox', { extend: 'Ext.navigation.View', alias: 'widget.myinboxview', requires: [ 'Ext.navigation.View' ], config: { title: 'My Inbox', xtype: 'card', items:

Why is there no sync callback in Sencha Touch?

久未见 提交于 2019-12-07 04:06:52
问题 I'd like to be able to show a message to the user once a store sync has successful completion. However, there doesn't seem to be any way of using a callback or calling this synchronously. I'm a little surprised this isn't provided out of the box as it must be a common problem. Is there any work-around for this? 回答1: It took us ages to find a proper solution to this. Finally we added listener to the store's write event what seems to be working properly. As it is needed frequently it has been

How can I create a resizeable text area in Sencha Touch?

回眸只為那壹抹淺笑 提交于 2019-12-07 00:24:31
I have an application in Sencha Touch where I have a textareafield. In Chrome, this is resizeable, but not when using an iPhone (I haven't tried on an Android device). I need to have a text input area where people can enter text anything from one or two words long to many sentences. So I need this to either automatically resize ; have some way of manually resizing it; or some way of scrolling within it. So far I have been unable to do any of these with Sencha Touch. I would really appreciate it if someone can point me towards a workable solution. It doesn't need to be any specific component in

Sencha Touch - How to get list itemtpl to display JSON child objects?

孤者浪人 提交于 2019-12-06 15:30:39
I am having some problems trying to display child objects using itemtpl property for a list. here is an example of the issue JSON String: {"messages" : [{"body":{"special":"some special format", "plain":"plain format"}}] Model: Ext.regModel('MyFeed', { fields: [ {name: 'body'} ] }); Store: var FeedStore = new Ext.data.Store({ model: 'MyFeed', proxy: { type: 'ajax', url: 'data.json', reader: { type: 'json', root: 'messages' } } }); List: var FeedList = new Ext.List({ itemTpl : '<div>{body}</div>', store: FeedStore, width: '100%', style: 'background-color: #dfe2e3', plugins: [{ ptype:

Sencha Touch JSONP Store Data not showing up in Panel

扶醉桌前 提交于 2019-12-06 15:19:22
I've got my sencha-touch app wired up as I believe it should be, and when I load it into Chrome, the Javascript console doesn't throw any errors. The WebService is finally returning the appropriate data, yet for some reason I can't for the life of me figure out why the panel is blank. Here's the APP URL http://rpcm.infinitas.ws/ Here's the WebService URL http://rpc.infinitas.ws/Vimeo/Read?_dc=1308083451839&limit=25&callback=stcCallback1001 And here is some relevant code. CONTROLLER rpc.controllers.VimeoController = new Ext.Panel( rpc.views.Vimeo.index ); VIEW rpc.views.Vimeo.index = { id:

How to take a photo using Camera in Sencha App?

蹲街弑〆低调 提交于 2019-12-06 15:14:51
I am trying to take a picture using camera in Sencha Touch 2. Here i have one button 'Take a Picture', when i will press it, camera should start. As i am new to this sencha touch 2, i am unable to figure it out, how to do this? For this i used the below code: Sencha Fiddle Link Please help me. I do not want to use Phone gap. You have to add device folder of Sencha Library in root directory and add below code in Ext.require('Ext.device.Camera'); and use this code for capture image using camera Ext.device.Camera.capture({ success: function(image) { imageView.setSrc(image); }, quality: 75, width:

Found extra positional argument package error on Sencha Touch build command

早过忘川 提交于 2019-12-06 14:03:59
问题 I am using Sencha touch 2.4.2 and Sencha Cmd is 6.0.2. I am using command sencha app build package I am getting following error on build Sencha Cmd v6.0.2.14 [ERR] Found extra positional argument package This question is already asked on https://de.sencha.com/forum/showthread.php?305473-Error-when-running-sencha-app-build-package&p=1116961&viewfull=1&langid=14 But there is no any answer . On issuing Below help Command sencha help app build lists following sencha app build [production|testing

serving cordova app www folder remotely

那年仲夏 提交于 2019-12-06 13:57:22
问题 Does anyone know how to serve the phonegap/cordova app www folder remotely? So i'm developing this camera app using the sencha touch framework with a layer of cordova to gain access to devices native camera. Im trying to serve the www folder remotely to be able to push updates to users without having to update the app. So i have tried to just copy the www folder from the android platform to the remote server. This worked on android but all other devices failed to load the website. Is the www

How do I make a dataview.list visible in Sencha Touch 2?

。_饼干妹妹 提交于 2019-12-06 13:27:34
A Sencha Touch newbie here. That said, I've been slowly getting my head around it in the last day or so. One thing that has driven me insane is formpanels and lists not showing up for some weird layout reason. I can't work out why. For instance I have the following Search view: Ext.define('NC.view.Search', { extend: 'Ext.dataview.List', xtype: 'searchpage', id: 'search-form', config: { title: 'Search', layout: 'vbox', itemTpl: '<div class="name">{name}</div>', store: 'Recipes', items: [ { xtype: 'toolbar', docked: 'top', items: [ { xtype: 'spacer' }, { xtype: 'searchfield', placeHolder:

Using Marker to Spot a particular address in a Map (Sencha Touch 2) Sencha Map

岁酱吖の 提交于 2019-12-06 13:15:19
问题 Am trying to build an app which gives a user direction once he or she clicks on the address. the structure of my App goes this way: i have manage to compile all the address i want in a list form, meaning the user can click on the address and it will load the second page. view the picture below: The picture above shows my current app and my current stage of development which am stuck there, when the app loads it show the Page A and when you click on any of the address, it goes to page B. Page