sencha-touch-2

button tap not reacting when view gets added a 2nd time

痴心易碎 提交于 2019-12-01 20:26:24
问题 When an item from a list gets selected i execute the following lines of code. this.details = Ext.create('EventManager.view.EventInfoView'); this.getNavigationView().push(this.details); so i create a new view, and push it on a navigationview. In my controller i listen for a tap on an acceptEventButton which is inside newly created view. Ext.define('EventManager.controller.eventController', { extend: 'Ext.app.Controller', config: { refs: { acceptEventButton: '#acceptEventButton' }, control: {

How to Embed a NestedList in a TabPanel?

吃可爱长大的小学妹 提交于 2019-12-01 18:50:44
I'm trying to create a tabpanel view that contains a splitview controller on the first tab. Think "kitchen sink" demo placed into one tab of a tabpanel. The others do not contain the nestedlist. http://dev.sencha.com/deploy/touch/examples/production/kitchensink/ I've tried placing the nestedlist into a container, which you can see in some of the commented code shown below. At the moment, this working code only shows the nestlist taking up the entire section on the first tab: Ext.application({ name: 'Test', requires: [ 'Ext.dataview.NestedList', 'Ext.navigation.Bar' ], launch: function() { Ext

button tap not reacting when view gets added a 2nd time

做~自己de王妃 提交于 2019-12-01 18:44:58
When an item from a list gets selected i execute the following lines of code. this.details = Ext.create('EventManager.view.EventInfoView'); this.getNavigationView().push(this.details); so i create a new view, and push it on a navigationview. In my controller i listen for a tap on an acceptEventButton which is inside newly created view. Ext.define('EventManager.controller.eventController', { extend: 'Ext.app.Controller', config: { refs: { acceptEventButton: '#acceptEventButton' }, control: { "acceptEventButton": { tap: 'onAcceptButtonTap' } } }, ... The first time this view gets placed on the

How to Embed a NestedList in a TabPanel?

天大地大妈咪最大 提交于 2019-12-01 18:44:40
问题 I'm trying to create a tabpanel view that contains a splitview controller on the first tab. Think "kitchen sink" demo placed into one tab of a tabpanel. The others do not contain the nestedlist. http://dev.sencha.com/deploy/touch/examples/production/kitchensink/ I've tried placing the nestedlist into a container, which you can see in some of the commented code shown below. At the moment, this working code only shows the nestlist taking up the entire section on the first tab: Ext.application({

store.sync() callback

浪子不回头ぞ 提交于 2019-12-01 13:52:04
Is there a callback for store.sync()? I am trying to do: store.sync(function(){ alert('1'); }); but it does not work. The store is a local store. Alex There is no 'callback' for sync(). In order to achieve this behaviour, you will need to listen to the store's write event. Check this solution . You can try: store.sync({ callback: function (records, operation) { alert('1'); } }); There is the way to listen success event store.on('write', function(){ alert('ready'); }); store.sync(); write fires whenever a successful write has been made via the configured Proxy 来源: https://stackoverflow.com

Unable setting nested json data on localstorage in sencha touch

[亡魂溺海] 提交于 2019-12-01 12:17:21
I have problem to setting nested json data on localstorage in sencha. I have Store class: Ext.define('default.store.Top25Store',{ extend: 'Ext.data.Store', config: { autoLoad:true, model: 'default.model.Top25WordFinal', id:'TodaysWord', proxy: { type: 'ajax', url: 'http://alucio.com.np/trunk/dev/sillydic/admin/api/word/my_favourite_words_with_definition/SDSILLYTOKEN/650773253e7f157a93c53d47a866204dedc7c363', reader: { type:'json', rootProperty:'' } } } }); and model class: Ext.define('default.model.Top25WordFinal', { extend: 'Ext.data.Model', requires: ['default.model.Top25WordRaw'], config: {

Sencha touch 2 - How to create dynamic carousel?

守給你的承諾、 提交于 2019-12-01 12:04:09
Sench Touch 2 - How to develop dynamic carousel in sencha touch 2? I want to show each element from the store as a separate card in the carousel. grumplet Rdougan offered this as an answer. Looks good to me. http://web.archive.org/web/20121109164506/http://edspencer.net/2012/02/building-a-data-driven-image-carousel-with-sencha-touch-2.html grumplet Update: There's a good answer now to My question quoting some Ed Spencer code. Also I notice that the new release candidate touchstyle example uses an infinite Carousel which is loaded from a Store. Previously on this channel: I asked this question

Sencha touch 2 - How to create dynamic carousel?

一个人想着一个人 提交于 2019-12-01 10:58:37
问题 Sench Touch 2 - How to develop dynamic carousel in sencha touch 2? I want to show each element from the store as a separate card in the carousel. 回答1: Rdougan offered this as an answer. Looks good to me. http://web.archive.org/web/20121109164506/http://edspencer.net/2012/02/building-a-data-driven-image-carousel-with-sencha-touch-2.html 回答2: Update: There's a good answer now to My question quoting some Ed Spencer code. Also I notice that the new release candidate touchstyle example uses an

Sencha Architect 3 does not use app.css

喜欢而已 提交于 2019-12-01 07:12:57
I am trying to add custom font icons to my sencha architect project, and remove unnecessary theme classes but it seems that Sencha Architect does not use the app.scss at all (located in the resources/sass folder of my project). The changes that I made are neither applied in architect nor when I start the app. app.scss $include-pictos-font: false; $include-default-icons: false; @import 'sencha-touch/default'; @import'sencha-touch/default/src/Class'; @include icon-font('CustomFont', inline-font-files( 'customFont/customFont.woff', woff, 'customFont/customFont.ttf', truetype, 'customFont

Loading a Carousel from a Store in Sencha Touch 2?

你离开我真会死。 提交于 2019-12-01 06:27:33
问题 Does anyone have a code example which would enable loading of a Sencha Touch 2 Carousel component from a Store (a JSON Store in my case)? I understand how to load a List which extends DataView, but Carousel appears to be a harder nut to crack since it does not extend DataView. 回答1: There is no built-in clean way to do this with the framework, however Ed Spencer (who works alongside me on Touch 2) wrote a blog post on how to do it: http://web.archive.org/web/20121109164506/http://edspencer.net