sencha-touch

How to add itemtap

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 10:07:56
问题 I have a list and I cant get items in the list to be clickable. I have onItemDisclosure and that should work but it is not. I would like the whole row to be clickable but I cant seem to get anything to work. onItemDisclosure : function(record, btn, index) { //window.location = 'http://www.google.com'; } Here is my full source code Ext.ns("Course", "Course.stores"); Course = new Ext.Application({ defaultTarget : 'viewport', name : 'Course', launch : function() { console.log('begin'); this

Sencha Touch 1.1 - Two column layout in hbox creates a <div> of height 0px causing subsequent panels to overlap its content

蹲街弑〆低调 提交于 2019-12-11 10:06:44
问题 I am using Sencha Touch to create a newletter layout. I start with a vbox panel (P1). Within this panel is a hbox panel (P1Content) that has "left column", spacer and "right column" panels. Both columns are vbox and contain panels themselves with content. I then try to add another panel underneath P1Content (P1Bottom). Here's the problem. P1Bottom overlaps with P1Content's content. I used Web Inspector and discovered that Sencha Touch set the height of Panel A's to be 0px. If I set the height

How to change the background color of the grouped heading in List in sencha touch 2?

隐身守侯 提交于 2019-12-11 09:35:46
问题 I have a list with 2 groups. I want to override the default background color of the headings given to the group in the list. How to change the background color of the grouped heading in List in sencha touch 2? 回答1: You can easily do this by adding ur own class to the list and the find the class names that define the styles for the headers using the chrome developer tools. Add cls to the list like { xtype: 'list', itemTpl: '<div class="contact2"><strong>{firstName}</strong> {lastName}</div>',

How to add an image in textfield in sencha touch [closed]

断了今生、忘了曾经 提交于 2019-12-11 09:31:55
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I want to add a small image in the text field in sencha touch. For example a small user icon in the username text field. 回答1: Create your textfield like this: { xtype: 'textfield', cls: 'username', fieldLabel : 'Username', // works for ExtJS label : 'Username' // works for Sencha Touch } and add

Phonegap 3 - Android Plugin not working

牧云@^-^@ 提交于 2019-12-11 09:28:27
问题 I have developed a custom phonegap plugin for android - https://github.com/bharatkaushik/AndroidEstimoteBeacons I have placed my plugin folder, within my project's Phonegap's plugin folder. My project's config.xml entry for this plugin is as follows: <feature name="EstimoteBeacons"> <param name="android-package" value="org.bkaushik.estimotebeacons" /> <param name="onload" value="true" /> </feature> I am not able to see my plugin's java files in my android project. Also, when I try to see the

sencha touch list tpl event reference

人走茶凉 提交于 2019-12-11 09:18:34
问题 In my list view, I put addEventListener ( alias on ) in my initialize event initialize: function (component) { component.element.on({ tap: { scope: this, fn: 'onTap', delegate: 'div.side-itemDelete' } }); }, But if there are more delegate ( other element with id or class) I need to bind an event, how can I handle it? This is my XTemplate: new Ext.XTemplate( '<div class="side-weatherListItem no-dragging">', '<div class="side-itemLocation">', '<div>{[values.city.toUpperCase()]}</div>', '<div>{

Loading dynamic data from xml file in grid Issu

ぃ、小莉子 提交于 2019-12-11 09:00:54
问题 I am trying to integrate a table view in my parent view using "Ext.ux.touch.grid" library. But I am unable to display the data in the table. My code are as follows: Grid View: Ext.define('RasovaiApp.view.Grid', { extend : 'RasovaiApp.Ext.ux.touch.grid.List', xtype : 'grid-grid', id: 'grids', requires : [ 'RasovaiApp.Ext.ux.touch.grid.feature.Feature', 'RasovaiApp.Ext.ux.touch.grid.feature.Editable', 'RasovaiApp.Ext.ux.touch.grid.feature.Sorter', 'Ext.field.Number', 'RasovaiApp.store

Controller for Buttons Sencha Touch 2

*爱你&永不变心* 提交于 2019-12-11 08:46:48
问题 I have this problem that I can ref a button for control it. I don't understand the logic of Controllers, see my example code: Ext.define('myMoney.controller.Inicio', { extend: 'Ext.app.Controller', config: { refs: { loginForm: '#loginForm', logButton: '#logButton', }, control: { logButton: { tab: "autenthic" } } }, autenthic: function(){ console.log("Wazzup!?"); } }); I have my view: Ext.define('myMoney.view.Inicio', { extend: 'Ext.form.Panel', xtype: 'inicio', requires: [ 'Ext.form.FieldSet'

I want an sample sencha touch application that deals with database

吃可爱长大的小学妹 提交于 2019-12-11 08:26:20
问题 I am new to sencha touch. I have a requirement for maintaining a database (not local storage)for the sencha touch application, can any body help me. 回答1: If your using php to connect to mysql this is a simple app I modified from the sencha site. First your javascript var helloWorld = new Ext.Application({ launch: function() { Ext.regModel('Contacts', { fields:[{ name:'first_last_name' }] }); store = new Ext.data.Store({ model: 'Contacts', proxy: { type: 'scripttag', url: 'contact.php', reader

How to get the center coordinate of the map(Ext.map) in sencha touch 2?

无人久伴 提交于 2019-12-11 08:20:00
问题 I use an Ext.Map to let a user choose a certain place and I want to get the coordinate (or the coordinate of the map center) that user chooses. Which method should I use? I can't find a proper one in the doc. 回答1: Check out my answer to similar question given here. This will give you an idea. How Can I Get marker on current location in map in Sencha-Touch2.0 EDIT: To obtain the position co-ordinates ( i.e latitude and longitude) from the textual address, you will need to use Google Maps