extjs

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

dockedItems - text from Panel

放肆的年华 提交于 2019-12-11 04:54:10
问题 I have Tree panel. everything works!; Ext.define('My.Tree', { extend:'Ext.tree.Panel', id: 'DriveTree', store: storeTree, ChooseButtonText: 'ChooseFolder', dockedItems: [{ xtype: 'toolbar', items: [{ text: 'BUTTON TEXT', // this.ChooseButtonText id:'connectButton', handler: function(){ alert(this.ChooseButtonText); } }, ] }], }); Ext.onReady(function(){ var tree =Ext.create('My.Tree', {}); }); But text of dockedItems want to be from Panel. something like this: text:this.ChooseButtonText each

Local Ajax request / Sencha / PhoneGap on Android

白昼怎懂夜的黑 提交于 2019-12-11 04:49:40
问题 I am trying to load some content in a PhoneGap App via a local Ajax request. It seems to work fine on iPhone, but Android wont find the file. It goes like this: Ext.Ajax.request({ url: 'file:///android_asset/webapp/content/file.html', success: function(response, opts) { console.log('response ' + response.responseText); } failure: function(response, opts) { console.log('response ' + response.responseText); } }); I already adjusted the Manifest and did set the Internet Permission, still no

Passing arguments to a window in ExtJs 6?

ⅰ亾dé卋堺 提交于 2019-12-11 04:44:31
问题 I would like to a pass a record from a grid to a window that I create, Ext.create('MyWindow', {recordRef: record}).show(); where record is an argument that is passed into my rowdblclick function but when I try to access recordRef (like below) during debugging, it is undefined. var me = this; var record = me.getView().recordRef; The code fragment above is in a controller for MyWindow.js 回答1: The reason this is happening is probably because you are using an event to access recordRef that is

Printing ExtJS charts with @media print

时间秒杀一切 提交于 2019-12-11 04:42:00
问题 I have a printing solution for ExtJS objects that seems to work great for everything except for charts. I've been using @media print CSS tip to create a "printing" div below my viewport (so it is not seen on screen, but it is the only item that is printed when a user clicks the print button). I do this so that I can control the proportionate sizing of the object so that it fits on the page nicely and so that I can remove "non-printing" elements like toolbars. When I want to print an ExtJS

Ext JS 3: How to copy a dynamically-generated treepanel?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:40:04
问题 I have a dynamically-generated Ext.tree.TreePanel in Ext 3.3.1. It looks like this: -root -fruit -apple -vegetable -carrot I need to make a duplicate/copy of this tree . I understand that the ids will be different and that's fine, but I want the text and the structure to be the same. My current idea is to recursively go through and node-by-node create a new tree. Is there a faster way? NOTE: Someone very helpfully suggested cloneConfig(), but my understanding is that it will not capture a

JS and Actionscript

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:39:48
问题 I have build a custom flash player which is embeded in web page using html and javascript extjs framework in the background. The player is embeded into extjs draggable window into the web page. I know that I can send/recieve variables and trigger events from/to flash player and javascript in the web page. When I drag the window with the player in it if i drag it fast, cursor goes over the player and the dragging stops. This is because dragging event from javascript stops at the moment when I

How to convert timestamp to customized date format in ExtJS4.1 model?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:39:03
问题 I want to convert the timestamp to customized date format right after the server returns the data. I tried to use the "convert" in Ext.data.field : http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Field-cfg-convert But I cannot make it right. This is my model. Ext.define('AM.model.Comment',{ extend: 'Ext.data.Model', fields: [ { name: 'createdTime', type: 'date', convert:function(v,record){record.parseDate(v,record);}}, // datetime ], proxy: { type: 'rest', url:'../comments', writer:{ type:

adding item to window Extjs 4

独自空忆成欢 提交于 2019-12-11 04:34:41
问题 I've been digging my mind all this morning to find the solution to this, I have an Extjs window where I want to put a chart as an item. I'm using Extjs 4, here's my window : Ext.define('Metrics.view.ChartWin', { extend: ['Ext.window.Window'], alias: 'widget.chartwin', requires :['Ext.chart.*','Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit', 'Ext.window.MessageBox', 'Metrics.view.DrawChart'], width: 800, height: 600, minHeight: 400, minWidth: 550, hidden: false, shadow: false,