sencha-touch-2

Sencha Touch: how to add a table view as rootView in left side & a view with a button as detailsView in right side of this split view in sencha touch

故事扮演 提交于 2019-12-11 05:08:54
问题 I have implemented an app in iphone using sencha touch & phone gap . Implemented split view using following code in index.js in SRC file with two text messages.. as shown bellow figure Now i need to add a table view on left side root view and a button on right side details view. how? Thanks in advance Ext.ns('sink', 'demos', 'Ext.ux'); Ext.ux.UniversalUI = Ext.extend(Ext.Panel, { fullscreen: true, layout: 'hbox', items: [ //Root view { xtype: 'panel', html: 'TableView/Rootview goes here ...',

Hiding a button on pushed view and showing it when back to list view

China☆狼群 提交于 2019-12-11 04:58:29
问题 When I load my list view it has several blog posts and a refresh button on the top left. If I tap on a list item a view is pushed with the contents of that specific post. When this view is pushed in, the refresh button is hidden. But when I tap 'Back' to the parent list view, I'd like the refresh button to show (un-hide) - but it remains hidden. Any idea how to make this work? This is my View: Ext.require(['Ext.data.Store', 'MyApp.model.StreamModel'], function() { Ext.define('MyApp.view

Google Analytics: How to track hits to mobile site as hits to main site

99封情书 提交于 2019-12-11 02:24:00
问题 We are developing a completely new mobile version of our site, it is a HTML5 site written using Sencha Touch 2 (Ext JS, JavaScript). We are using Google Analytics on our main site, and we would like to use GA on the mobile site as well. However our desired use case is a little special: We would like hits to articles on the mobile site to be tracked as hits to the corresponding article on the main site. The reasoning behind this is the desire to aggregate the statistics, and not have the data

Sencha touch 2.0 carousel, image resolution

本秂侑毒 提交于 2019-12-11 02:15:29
问题 -App uses Sencha touch 2.0 carousel -Images in the carousel are displayed full screen (minus the navigation bar at the top of the screen) -App is targetted for iPad2, iPad2 Retina display, Android xhdpi (tablets) Goal: To display full screen images in the carousel in all target devices Question: What should be the resolution of the image? I have tried 1028x768 image in the carousel. Displays fine (full screen) on iPad2 retina but on Samsung galaxy Tab 10 I see vertical bars on the sides. I

Changing default blue theme to green

≡放荡痞女 提交于 2019-12-11 01:36:43
问题 I want to change the default blue color of my Sencha Touch application to green. The steps I followed are listed below: gem update --system gem install compass compass create myfile Copied a .scss file and pasted it in the touch-2.2.1/resources/sqss/ directory. Pasted the following code in that file and named it happy.css : $base-color: #709e3f; @import 'sencha-touch/default/all'; @include sencha-panel; @include sencha-buttons; @include sencha-sheet; @include sencha-tabs; @include sencha

Changing the view - Sencha

天大地大妈咪最大 提交于 2019-12-11 01:16:09
问题 I want to change view on itemtap and i have done that itemtap : function(list, index, target, record, event) { var id = index + 1; if(id == '1'){ Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true); Ext.Viewport.add([ { xtype: 'publishedword' } ]); } now, I am trying it to apply in view as shown in below pic where 1st view contains an Menu with populated item and now onclick of those item I want to open new view in Homepage replacing HomePage View. How can i achieve this? Container for

Sencha Touch 2.0 Controller refs attribute not working?

空扰寡人 提交于 2019-12-10 23:38:38
问题 i am wondering about the 'refs' attribute of Sencha Touch class 'Ext.app.Controller'. I saw a video tutorial where a simple contactForm was built. No i've tried to build a contact form for my app and i get an error: 'Uncaught TypeError: Object [object Object] has no method 'getContactForm'' Here's my controller Ext.define('MyFirstApp.controller.Main', { extend: 'Ext.app.Controller', views: ['Viewport', 'Home'], refs: [ { ref: 'contactForm', selector: '#contactForm' } ], init: function() {

How to add 'Ext.require' in Sencha Architect 2

喜欢而已 提交于 2019-12-10 23:26:28
问题 Per the instructions here in order to use the Native API I need to add an 'Ext.require()' to the code. How do I do that in Sencha Architect 2? It seems like everything outside a custom function or an event is readonly so I can't just add my own code ad-hoc. 回答1: As suggested by Bharat Nagwani, Architect now includes a way to require any classes that you would like to dynamically load. Luca Candela and I presented a small application which illustrates use of the Ext.device.Camera API a few

Sencha Cmd broken: Why does 'app build' ignore any command line parameters?

不羁岁月 提交于 2019-12-10 22:25:16
问题 I've upgraded Sencha cmd to v4 and I used to be able to build to a specific archive path and destination path. This was crucial as the build server removes the source code folder and archive path for each build. I had the paths output on the IIS server away from the build server, so that they are never lost. However, my build process is failing now as the path parameters supplied to the sencha cmd don't do anything. If I type: Sencha help app build I get the following help: Syntax sencha app

Using Selenium to test Sencha 2 app

你。 提交于 2019-12-10 20:37:26
问题 I cant click on a Sencha 2 generated button as it isnt a input field. It builds up the button with divs and spans. Found this link which describes how to click the buttons with a Selenium test http://mobilewebqa.blogspot.com/ Problem: How to click on a Sencha Touch button? The built in Selenium click, click_at, etc methods would not work. Solution: Fake out a Sencha Touch tap event by using the following steps: focus mouse_down mouse_up But how do I invoke this events from Selenium? Any other