extjs

EXTJS Dynamically put a component into a container with other components

会有一股神秘感。 提交于 2019-12-31 05:45:09
问题 I'd like to achieve this behavior: If a field (combo, text, date ...) in a form panel has a custom property set true { xtype: 'textfield', fieldLabel: 'Name', name: 'Name', customProp: true }, then add a button or other components behind the actual component. Writen in json it would look like this: { xtype: 'container', margin: '0 0 8 0', layout: 'hbox', items: [ { xtype: 'textfield', fieldLabel: 'Name', name: 'Name', }, { xtype: 'button', text: 'xxx', tooltip: 'I\'m a custom tooltip' } ] } I

How to switch between cards in card layout

做~自己de王妃 提交于 2019-12-31 04:45:28
问题 I have a card layout having two cards one with tab panel.Inside tab panel grid panel is there and another card is my content panel. I have to switch to next card i.e my content panel on cell click on my grid panel. Have used the setActiveitem() function but something is wrong. extend: Ext.panel.Panel, id: 'cardpanel', width: 300, height: 1000, reference: 'resultcardPanel', itemid: 'cardPanel', layout: { type: 'card', anchor: '100%' }, activeItem: 0, xtype: 'searchresults', bodyStyle: 'padding

ExtJS 4.2 DatePicker Multiselect catch event in controller

时间秒杀一切 提交于 2019-12-31 03:26:12
问题 I am creating a custom date-picker in ExtJS 4.2 using the MVC architecture. The idea is that the component allows a user to input / select multiple dates at a time however I am having a few issues: My selectedDates variable is an object and I don't how how to make it return the list of dates. When you open a new window the picker remembers the previously selected dates from the last time that the window was open. I thought that when you close a window in Ext , the components are destroyed ?

Version of Ext JS used by AEM 6.1

折月煮酒 提交于 2019-12-31 03:02:11
问题 Which version of Ext JS library does AEM 6.1 use? Is there a direct way/console to find this out? 回答1: It uses v3.4.0 of ExtJS on top of which the AEM Widget Library is built. You can find the details at /libs/cq/ui/widgets/source/ext/release-notes.html The following Note is also available at https://docs.adobe.com/docs/en/aem/6-1/develop/components/widgets.html Adobe Experience Manager is built upon ExtJS 3.4.0. 来源: https://stackoverflow.com/questions/35553557/version-of-ext-js-used-by-aem-6

Ext.isIE return false in IE 11

天涯浪子 提交于 2019-12-30 17:43:09
问题 When I try to use Ext.isIE in IE11 i get false the returning value. And then during the debug my code I see that I get the following error: JavaScript Error - Msg:Invalid argument., my extjs's version is: 4,2 回答1: IE 11 is not officially supported prior to ExtJS 4.2.2 (see property isIE11). Microsoft removed the MSIE part from IE11's user agent (refer here), which is the reason why it does not work with ExtJS 4.2.1 and below. From the source code, for ExtJS 4.2.1: isIE = !isOpera && check(

EXTJS Fileupload - Problem with IE8 security bar

夙愿已清 提交于 2019-12-30 11:33:29
问题 I'm trying to make an EXTJS application to send email with an attachment. So I have a very basic form that include textfield for the subject, another textfield with inputType: 'file' for the attachment, and an html editor. var panel = new Ext.form.FormPanel({ fileUpload:true, labelAlign: 'right', monitorValid: true, border: false, bodyBorder: false, defaults:{ anchor: '100%', labelStyle: 'font-weight:bold;' }, items: [ { xtype: 'textfield', fieldLabel: 'SUBJECT', name: 'subject', allowBlank:

Scrollbar in extjs tree panel does not work

老子叫甜甜 提交于 2019-12-30 11:22:09
问题 Sometimes it happens that the scrollbar of my tree panel does not work anymore. While it's still possible to move the scrollbar, the tree doesn't move at all anymore. That happens to me in Firefox and in Chrome as well. Here is the source of my tree panel: var treeStore = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: '../tree.pl' } }); var tree = Ext.create('Ext.tree.Panel', { store: treeStore, renderTo: 'tree', title: 'Tree', width: 400, height: 450, rootVisible:false,

Paging Grid displaying all records - Ext JS

匆匆过客 提交于 2019-12-30 11:16:16
问题 EDIT It turns out that a store cannot have duplicate IDs. When i remove this field, All records display - which means the grid is not respecting the pageSize I'm having an issue getting all my store records to display in my grid. The data is returning appropriately from a JSON request, and the pagingtoolbar behaves correctly. Here's my store: var store = Ext.create('Ext.data.Store', { storeId : 'resultsetstore', autoLoad : false, model : model, pageSize : itemsPerPage, // 3 proxy: { type :

Paging Grid displaying all records - Ext JS

半腔热情 提交于 2019-12-30 11:15:09
问题 EDIT It turns out that a store cannot have duplicate IDs. When i remove this field, All records display - which means the grid is not respecting the pageSize I'm having an issue getting all my store records to display in my grid. The data is returning appropriately from a JSON request, and the pagingtoolbar behaves correctly. Here's my store: var store = Ext.create('Ext.data.Store', { storeId : 'resultsetstore', autoLoad : false, model : model, pageSize : itemsPerPage, // 3 proxy: { type :

Paging Grid displaying all records - Ext JS

假装没事ソ 提交于 2019-12-30 11:15:07
问题 EDIT It turns out that a store cannot have duplicate IDs. When i remove this field, All records display - which means the grid is not respecting the pageSize I'm having an issue getting all my store records to display in my grid. The data is returning appropriately from a JSON request, and the pagingtoolbar behaves correctly. Here's my store: var store = Ext.create('Ext.data.Store', { storeId : 'resultsetstore', autoLoad : false, model : model, pageSize : itemsPerPage, // 3 proxy: { type :