sencha-touch-2

Sencha Touch 2 FormPanel not showing up properly (layout issue?)

对着背影说爱祢 提交于 2019-12-12 15:41:45
问题 I'm having trouble with the layout of a FormPanel in Sencha Touch 2. See example app below. There should be a panel with 'vbox' layout containing 3 items: a piece of text, a FormPanel, and another piece of text. However the FormPanel seems to get size 0x0 and not show up at all, so I only see the two texts. I found 2 things that get the form panel to show up: Setting layout: 'fit' on the outer panel. But then everything overlaps. fit isn't really designed for more than one item, so this isn't

how to give dynamic axes minimum and maximum values to chart from store sencha touch

痞子三分冷 提交于 2019-12-12 12:12:44
问题 I am using xtype:chart and this is my axes. axes: [{ type: 'numeric', minimum: 0, position: 'left', fields: ['2011', '2012', '2013'], title: 'Sales', minorTickSteps: 1, grid: { odd: { opacity: 1, fill: '#ddd', } }, style: { axisLine: false, estStepSize: 20, stroke: '#ddd', 'stroke-width': 0.5 }, minimum: 0, maximum: 1000 }, { type: 'category', position: 'bottom', fields: ['name'], title: 'Month of the Year', style: { estStepSize: 1, stroke: '#999' } }] Here is my problem, minimum and maximum

Ext.dataview.component.DataItem descendant with a complex UI

自作多情 提交于 2019-12-12 10:04:10
问题 I am creating a custom DataItem that will raise events when tapped. The example on page http://www.sencha.com/blog/dive-into-dataview-with-sencha-touch-2-beta-2 is pretty ok but I couldn't find a way to create a complex ui for the item. The sample has an hbox layout and creates the controls in it. My dataitem also has an hbox layout but on the far right I have to lay three buttons in a vbox layout. Do I have to create another control for the vbox and the buttons in it? I dont' want to catch

How to move from one view to another view using viewport in sencha?

蹲街弑〆低调 提交于 2019-12-12 09:11:56
问题 In my application I have a one view with topbar and some fields. In this button when I am click the login button I want to move to another view (Dashboard) which is a tabview. So for this I am using viewport. But I am unable to move from one view to another. Here is my code: app.js Ext.Loader.setConfig({ enabled : true }); Ext.application({ views : ['TitlePanel', 'dashboardpanel'], models : [ 'MyModel', 'wishlistmodel' ], stores : [ 'name', 'wishlistsummarystore' ], name : 'MyApp',

Navigation View Sencha Touch 2

北战南征 提交于 2019-12-12 08:58:20
问题 I have a problem with my NavigationView in Sencha Touch 2. When I push the 'back' button, then I can't navigate more than one window. I navigate using view.push() and view.pop(). view.js: Ext.define('MyApp.view.view', { extend: 'Ext.navigation.View', alias: 'widget.View', config: { id: 'nvView', items: [ { xtype: 'toolbar', docked: 'bottom', layout: { align: 'center', pack: 'center', type: 'hbox' }, items: [ { xtype: 'button', iconAlign: 'center', iconCls: 'info', iconMask: true, text: 'Ayuda

Sencha touch: Error-" The following classes are not declared even if their files have been loaded: 'Ext.panel'

ぃ、小莉子 提交于 2019-12-12 04:55:28
问题 I have just started with sencha touch,really impressed with sencha documentation and its native feel. I was trying out this link. But i got error in between and i got this error in console "The following classes are not declared even if their files have been loaded: 'Ext.panel'. Please check the source code of their corresponding files for possible typos: 'touch/src/panel.js". i am new to MVC framework so i am not able to find where i went wrong. And is it necessary to get good knowledge of

Unable to change the value of variable in button click - Sencha

无人久伴 提交于 2019-12-12 04:54:29
问题 I am trying to change value of variable and i did as instruction in this post but value does not changes. My codes are as follow: Ext.define('MyApp.view.OnlineOffline', { extend: 'Ext.Panel', alias: "widget.onlineoffline", config: { onlineStatus: 0, items: [ { xtype: 'container', layout: 'hbox', cls: 'offline-wrap', items:[ { xtype: 'image', cls: 'offlineCheck', id:'onlineButton', width: 85, height:20, listeners: { tap: function (button) { var me = button.up('onlineoffline') if (!Ext.device

Buttons in a same row

蓝咒 提交于 2019-12-12 04:47:53
问题 Here my code in sencha touch, i tried to add 2 button horizontaly, Means one to other.No,luck its keep on coming one in upper side and the other one lower. var profilese = { standardSubmit : false, items: [tab,{ xtype: 'button', text: 'ADD', ui: 'confirm', handler: function() { view.setActiveItem(2, {type:'fade', direction:'right'}); } },{ xtype: 'DELETE', text: 'Search Friends', ui: 'Search', handler: function() { view.setActiveItem(3, {type:'fade', direction:'right'}); } }] }; How to set

Get a particular value from Store in Sencha Touch?

为君一笑 提交于 2019-12-12 04:38:46
问题 I've created a model with following structure: Model Code: Ext.define('MyApp.model.FavoriteScreen', { extend: 'Ext.data.Model', config: { fields: [ { name: 'Name' }, { name: 'ScreenId' } ] } }); And I've created a store with following structure: Store code: Ext.define('MyApp.store.FavoriteStore', { extend: 'Ext.data.Store', requires: [ 'MyApp.model.FavoriteScreen' ], config: { autoLoad: true, model: 'MyApp.model.FavoriteScreen', storeId: 'FavStore', proxy: { type: 'ajax', api: { read: '/api

getting error in the javascript ,when authenticate the username and password using digest authentication

笑着哭i 提交于 2019-12-12 03:57:30
问题 here i want to authenticate the username and password .here im getting the username ,password vlues succesfully in console(valuesUser). I tried the following code, Ext.define('Form.controller.Digestauth', { extend: 'Ext.app.Controller', requires:['RegisterForm.view.Login','RegisterForm.view.Main'], config:{ refs:{ loginform: '#loginform' }, control: { '#loginButton': { tap: function(){ var valuesUser = this.getLoginform().getValues(); console.log(valuesUser); console.log(valuesUser.userName);