sencha-touch-2.1

How to define global variable in sencha

一笑奈何 提交于 2020-01-05 09:21:57
问题 I am try to global variable in one entire view, could not done it. initialize : function(){ this.callParent(); this.nameValue=0; if(name="ram") this.nameValue=1; console.log("Test 1 -"+this.nameValue); }else { this.nameValue=0; console.log("Test 2 -"+this.nameValue); } } it would be access value form button tap like this: onSubmitButtonTap: function () { console.log("Button Tap Here"); console.log("Test Def-6-"+this.nameValue); } But i could not access it, it display always 0. I have gave

Sencha touch nested list no data

瘦欲@ 提交于 2019-12-24 16:14:41
问题 I am new for sencha touch. I using mvc method. Please see my code below Main.js Ext.define('test.view.Main', { extend: 'Ext.tab.Panel', xtype: 'main', requires: [ 'Ext.TitleBar', 'Ext.Video', 'Ext.dataview.NestedList' ], config: { tabBarPosition: 'bottom', items: [ { title: 'Welcome', iconCls: 'home', styleHtmlContent: true, scrollable: true, items: { docked: 'top', xtype: 'titlebar', title: 'Welcome to Sencha Touch 2' }, html: [ "You've just generated a new Sencha Touch 2 project. What you

Build error with Sencha Command

我们两清 提交于 2019-12-24 11:34:16
问题 I just upgraded my app to Sencha Touch 2.1 and I'm now trying to build it for production. Unfortunately, I get the following error message : Sencha Cmd v3.0.0.250 [DBG] checking /Users/titouanvanbelle/Documents/workspace/app/sencha/.sencha/app for plugin.xml [DBG] checking /Users/titouanvanbelle/Documents/workspace/app/sencha/.sencha/workspace for plugin.xml [DBG] checking /Users/titouanvanbelle/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current for plugin.xml [DBG] checking /Users

Sencha Touch - menu and edge swipes errors

我是研究僧i 提交于 2019-12-23 04:55:14
问题 I'm wondering if anyone has found a fix for the issue, when the menu is initialized but has not been shown yet and the user makes edge swipes what leads to ST throwing errors: Uncaught TypeError: Cannot read property 'on' of undefined. Please see here what I mean (open console and make edge swipes): https://fiddle.sencha.com/#fiddle/3vq More about that: http://www.sencha.com/forum/showthread.php?281225 回答1: Hot fix for Sencha Touch 2.4.1 side menu slide issue TOUCH-5328: replace in touch\src

secha touch calendar swarmonline mvc bug

人走茶凉 提交于 2019-12-23 04:35:19
问题 I'm trying to work with a Sencha Touch calendar extension (http://www.sencha.com/forum/showthread.php?156351-Ext.ux.TouchCalendar) Here is an example of what im using: http://www.swarmonline.com/Ext.ux.TouchCalendar/examples/simple-events-list.html Am using the mvc folder in the app.. there is bug in period change event please follow these steps load mvc app click event list 3 click any date that have event 4 Then click period change 5 Rest of the events are gone from the calendar Am trying

secha touch calendar swarmonline mvc bug

若如初见. 提交于 2019-12-23 04:35:17
问题 I'm trying to work with a Sencha Touch calendar extension (http://www.sencha.com/forum/showthread.php?156351-Ext.ux.TouchCalendar) Here is an example of what im using: http://www.swarmonline.com/Ext.ux.TouchCalendar/examples/simple-events-list.html Am using the mvc folder in the app.. there is bug in period change event please follow these steps load mvc app click event list 3 click any date that have event 4 Then click period change 5 Rest of the events are gone from the calendar Am trying

Tap event for Ext.carousel.Carousel

廉价感情. 提交于 2019-12-23 00:48:56
问题 There seems to be no tap event for Ext.carousel.Carousel. How can I make a carousel respond to tap events? (tap, itemtap etc.) 回答1: Tap events do not work on the components directly. Instead they work fine on component's element. So, for your case you can use it like this: In your controller's "control", control : { // Your carousel reference "carousel" : { initialize : function(carousel){ carousel.element.on('tap', function(e, el){ // Here you will get the target element console.log(e.target

install sencha-touch 2.1 on mac

霸气de小男生 提交于 2019-12-19 04:56:30
问题 I need to install sencha touch 2.1 on my mac but I can't… i follow this guide http://www.sencha.com/learn/getting-started-with-sencha-touch-2 so i installed sencha cmd and i copy the sencha-sdk folder in the www/ directory of apache.. if i do: localhost/sencha-skd on my browser i see the docs of sencha, so the server works fine.. but from the terminal if I write the command sencha i get -bash: sencha: command not found and this happend in every folder… somebody can help me? thanks a lot 回答1:

Scope Problems, Sencha, Getting Data passed to view from controller in items?

蓝咒 提交于 2019-12-14 02:11:55
问题 I am passing a record in from the controller via: showDetail: function (list, record) { this.getMain().push({ xtype: 'leaddetail', data: record.data }); }, My View: Ext.define('ApexChat.view.LeadDetail', { extend: 'Ext.Panel', xtype: 'leaddetail', init: function() { debugger; }, config: { styleHtmlContent: true, scrollable: 'vertical', title: 'Details', frame: true, labelwidth: 75, items: [ { xtype: 'fieldset', columnWidth: 0.5, collapsible: true, title: 'Lead Information', defaultType:

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