extjs

Binding Grid and Form ExtJs 6

大兔子大兔子 提交于 2019-12-11 08:42:54
问题 I have a grid populating records from view model (Ajax proxy data from Java restful web services). When I select a record in the grid form open and the fields are displayed. The records are editable using the form. I have one tag field which is binded to a store and I should be able to populate the data associated to the record whenever the user selects a record. "data" : [ { "createdOn" : 1475678859000, "updatedOn" : 1475679885000, "updatedBy" : null, "id" : 174, "userName" : "ffff,

How to customize the CSS of a theme generated with the ThemeBuilder?

。_饼干妹妹 提交于 2019-12-11 08:35:36
问题 I have used the ThemeBuilder to create a theme, but now I need to add an attribute in a CSS class so I can have a different font color in the selected element of a ListView, for example. Ideally I would expect that the builder have support for specifying such a configuration in the .theme file, specially because font color is something that will not affect the image generation process that is used to support older browsers. In fact the builder should have support for all standard CSS3

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

Size of tab in sencha

…衆ロ難τιáo~ 提交于 2019-12-11 08:22:58
问题 I want to modify the size of the tab in css. I found the variable $tabs-bottom-icon-size which modify only the size of the icons in the tab. Is there any variable which allows me to modify the size of the entire tab? And if not,how can i do this? Thank you. 回答1: Unfortunately not. You will have to just override the height of both the .x-tabbar and .x-tab classes. .x-tabbar { height: 5em; } .x-tab { height: 4.5em; } 来源: https://stackoverflow.com/questions/10210114/size-of-tab-in-sencha

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

Adding a 'Controller' class to my MVC based Sencha Touch project

*爱你&永不变心* 提交于 2019-12-11 08:19:16
问题 I have created a MVC SenchaTouch project. I have created a sample application where the user will enter the username and password and send it to the web service. The username, and password fields are suppose to be in the 'VIEW', and the 'sending it to the web service' functionality should be in the 'CONTROLLER'. In my program, the sending to the web service part is also there in the 'VIEW', so can someone please help me edit my code, so that i could have the 'send to the web service'

sencha don't seeing the list in a panel

谁说我不能喝 提交于 2019-12-11 08:11:27
问题 Hi I don't understand why I don't see my list in tab3... This is my code... I add one record in myStore but I don't see the list... Thanks in advance! var mainForm ; var mainFormPanel={}; var addToXml=function (values){}; var htmlTemplate='<p>{b}</p><p>{m}</p><p>{f}</p>'; var template = new Ext.Template(htmlTemplate); var myStore = Ext.create('Ext.data.Store', { storeId: 'MyStore', fields: [ {name: 'id', type: 'string'}, {name: 'c', type: 'string'}, {name: 'd', type: 'string'}, {name: 'q',

insert in sencha touch data store

雨燕双飞 提交于 2019-12-11 08:04:34
问题 Could someone please explain how the insert works to add a record in a datastore with tha fields: "title", "info" and "price"? because i tried some things and none of them work. and the sencha website doesnt make it very clear. 回答1: Adding a new item to an existing Store isn't that hard actually. First of you will need to configure your model and store. In your question you name the fields 'title, 'info' and 'price'. Model: Ext.regModel('myModel', { fields: [ {name: 'id', type: 'int' }, {name

Extjs datefields from to or start end date validations

我的梦境 提交于 2019-12-11 07:59:43
问题 This is a extjs mixin to validate fromdate todate or start end dates in a form. here's the mixin.. (core code was taken from sencha forum :)) Ext.define("AMShiva.mixin.DateRangeValidator", { timerange: function (val, field) { /// <summary> /// This will validate two datefields /// </summary> var me = this; //will be the form, containing datefields var time = field.parseDate(val); if (!time) { return; } if (field.startTimeField && (!this.timeRangeMax || (time.getTime() != this.timeRangeMax

Google maps API required

旧时模样 提交于 2019-12-11 07:51:51
问题 When i try to show the map in my aplication its showing the messsage as "Google maps API required" in the view, Here my code var mapapnel = Ext.create('Ext.Panel', { id: 'mapapnel', height: '100%', width: '100%', fullscreen: true, layout:'fit', layout:'vbox', items: [{ xtype: 'toolbar', ui:'light', docked: 'top', title: 'Find location', items: [{ text: 'Back', ui: 'back', handler: function() { Ext.getCmp('homepnl').setActiveItem(1); } },{ xtype:'spacer' }]}, { xtype:'map', useCurrentLocation