extjs

sencha button stop

对着背影说爱祢 提交于 2019-12-25 11:53:50
问题 Can someone please help me? I have a map in sencha that can track my current location and it draws lines. But I also want a button to stop tracking. So I want to set autoUpdate: false; But I seriously dont know how to do this... This is my code Ext.application({ name: 'Applicatie3.', launch: function() { var view = Ext.create('Ext.NavigationView', { fullscreen: true, items: [{ title: "I'm lost", xtype: 'tabpanel', items:[{ title : 'Home', xtype : 'map', iconCls : 'home', mapOptions : { zoom:

Sencha Touch: load store for List using Rest Proxy

末鹿安然 提交于 2019-12-25 11:27:34
问题 I'm new to sencha so I'm sure I'm just missing something simple here. I have a rest service and I need to be able to load my store for my list view. Here's my model with the proxy: Ext.define('UserModel', { extend: 'Ext.data.Model', config: { fields: [ { name: 'UserId', type: 'int' }, { name: 'FullName', type: 'string' } ], proxy: { type: 'rest', url: '/rest/user', reader: { type: 'json', root: 'user' } } } }); And this code works fine for a GET request. So I know that I'm able to talk with

Sencha Touch: load store for List using Rest Proxy

99封情书 提交于 2019-12-25 11:26:02
问题 I'm new to sencha so I'm sure I'm just missing something simple here. I have a rest service and I need to be able to load my store for my list view. Here's my model with the proxy: Ext.define('UserModel', { extend: 'Ext.data.Model', config: { fields: [ { name: 'UserId', type: 'int' }, { name: 'FullName', type: 'string' } ], proxy: { type: 'rest', url: '/rest/user', reader: { type: 'json', root: 'user' } } } }); And this code works fine for a GET request. So I know that I'm able to talk with

Sencha Themer SCSS resource Integration Issue

爱⌒轻易说出口 提交于 2019-12-25 10:01:15
问题 I am getting stuck with an issue, i have created a theme with Sencha themer and its integrating well with Architect. But, if we add a SCSS file for putting custom SCSS then that changes are on reflected in my application. Sencha Architect Version: 4.2 Themer: v1.2.0.41 Thanks in advance. 来源: https://stackoverflow.com/questions/45208670/sencha-themer-scss-resource-integration-issue

Ext JS 4.2.1 - grid with paging - checkbox state lost

最后都变了- 提交于 2019-12-25 09:13:09
问题 I have an ExtJS grid that has a PagingToolbar for (remote) paging, and a checkbox column defined as: { dataIndex : 'selected', xtype: 'checkcolumn', width : 60 } However, if I check a box and then page forwards and backwards, the checkbox state is not saved - all the checkboxes are unchecked. I guess since the store only contains data for the current page (from the server), I need some way of storing the state for rows that are not in the current page of data, and then reinstating the

Binding component state conditionally

心已入冬 提交于 2019-12-25 08:30:51
问题 I intend to change the state of several fields in a form (hide) according to the value selected in a combobox. This can be done using methods such as setVisible () or setHidden (). It will be possible to achieve this goal using binding component state? SOLVED Fiddle https://fiddle.sencha.com/#fiddle/1itf 回答1: Yes. Using ViewModel formulas. Quoting from the documentation: Many configs you will want to bind are boolean values, such as visible (or hidden), disabled, checked, and pressed. Bind

How to replace the image?

放肆的年华 提交于 2019-12-25 08:27:26
问题 Below code displays the tree structure.When i click on the image Pic.gif,it has to get replaced by new image.Similarly pic1.gif to new image,pic6.gif to new image.Can you help mw with the code where exactly it fits in this code ???? var children = [{ text: 'family', icon: 'pic1.gif', children: [{ text: 'parent1', icon: 'pic2.gif', children: [{ icon: 'pic3.gif', text: 'children1', leaf: true}, { icon: 'pic4.gif', text: 'children2', leaf: true}, { icon: 'pic5.gif', text: 'children3', leaf: true

ExtJs Set Parameters Values

若如初见. 提交于 2019-12-25 08:25:17
问题 I have a form with some controls (extJs and ASP) like this: <ext:ComboBox ID="Countries" runat="server" .../> <asp:CheckBox ID="cb1" runat="server" /> I want to send parameters using BaseParams of the store object: <ext:Parameter Name="cid" Value="Ext.get('#{Countries}').getValue()" /> <ext:Parameter Name="cbv" Value="#{cb1}.dom.checked" /> and that became: Ext.apply( options.params,{ "cid":Ext.get('CountryCities1_Countries').getValue(), "cbv":Ext.get("CountryCities1_cb1").dom.checked} ); as

Extjs Grid - Add class to row when click a cell of row

妖精的绣舞 提交于 2019-12-25 07:35:12
问题 I want to add class to row when i click a cell of grid like below I try three option but not working. How to make it work thanks listeners: { ,'cellclick': function (grid, td, cellIndex, record, tr, rowIndex, e, eOpts ) { // addclass to row Ext.fly(grid.getView().getRow(rowIndex)).addClass('bluerow'); // not working grid.getView().addRowCls(rowIndex, 'bluerow'); // not working Ext.get(e.target).addClass('bluerow'); // not working } } 回答1: grid param in cellclick is already a view.Please have

ExtJS6: How to set leftpad margin to 0 for treelist items

心不动则不痛 提交于 2019-12-25 07:15:17
问题 I have a treelist working using ExtJS6 but since items are left padded automatically given their depth and text inside it gets truncated for third child and deeper. Since I use it as a menu, having fixed width. I need to remove auto calculated leftpad margin. I did not find anything useful while going through extjs api for treelist. Could anyone please help 回答1: If you look at the code of treelist and treelistitem and abstract tree list item for a minute, you see that you can use the