extjs

How to work with combo having images inside in extjs 4.1

故事扮演 提交于 2021-02-05 06:36:06
问题 I try to create a combo with an image ( or something else ) and when I choose an option, value in combo has some options. I create a combo box look like: But when I choose an option that looks like: Here is my code http://jsfiddle.net/QZqeK/ // The data store containing the list of states var states = Ext.create('Ext.data.Store', { fields: ['abbr', 'name'], data : [{ "abbr":"AL", "name":"<img src='http://icons.iconarchive.com/icons/famfamfam/silk/16/folder-picture-icon.png'>" }, { "abbr":"AK"

Placeholder text for MessageBox

泄露秘密 提交于 2021-01-29 15:03:51
问题 I am trying to apply a placeholder text for the textarea in the MessageBox via prompt but it doesn't seem to show. Here's my code so far: Ext.Msg.show({ title: 'Approve Confirmation', message: 'Confirm to approve the selected items?', multiline: 'true', prompt:{ placeHolder:"PLACEHOLDER TEXT HERE", }, iconCls: 'fa fa-check-square-o', buttonText: { ok: 'Yes', cancel: 'No' }, height:350, width:500, defaultTextHeight:210, fn:function(btn,text){ //http processes } }); Any tips on how to do so?

How to apply filter function to paging grid with local(memory) store in ExtJS6?

佐手、 提交于 2021-01-29 11:23:48
问题 I have a paging grid with local store, and I want to apply a filter using my own function. But it is failed. From internet recommendations I used remoteFilter: true and enablePaging: true options in store config. And it works perfectly if I filter store with specific configuration object: store.filter([{ property: 'age', value: 12 }]); unfortunately it is not enough to build complex filter criteria. In accordance with documentation there is a special filterBy method in store object to use

RTL horizontal Scrollbar Problem in Extjs in Chrome

て烟熏妆下的殇ゞ 提交于 2021-01-29 08:00:53
问题 I have extjs project. when I use LTR Mode OR use FirFox scroll bar work well. but when I use Chrome, scrollbar after load data goes to left side instead of right side. My Code For RTl Project: Ext.define('App.Application', { extend: 'Ext.app.Application', name: 'App', requires: [ 'App.*', 'Ext.rtl.*' ], launch: function () { var whichView = 'mainview2'; var elem = document.getElementById("splash"); Ext.ariaWarn = Ext.emptyFn; Ext.getBody().removeCls('launching'); elem.parentNode.removeChild

Ext Js 4 Chart inside viewport

南楼画角 提交于 2021-01-29 06:43:01
问题 I am trying to build a chart inside a viewport, but can't figure out how. Visit http://13.233.173.7/app2.html to view I have tried importing var chart into overview-generic.js and specify chart as items: chart. It is not working <!DOCTYPE html> <html> <head> <title>Dashboard</title> <!-- ExtJS --> <script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/include-ext.js"></script> <!-- Shared --> <link rel="stylesheet" type="text/css" href="http://cdn.sencha.com

How to get response message from server on Store.sync()

北城余情 提交于 2021-01-28 06:27:04
问题 I have a store which I'd like to sync() with server. Store.sync() method have success and failure property-functions, they have Ext.data.Batch and options as parameters. If I get such response from server: { success: false, msg: "test error!" } failure method invokes. How to access response msg property from within failure method? 回答1: store.sync({ failure: function(batch, options) { alert(batch.proxy.getReader().jsonData.msg); } }); 回答2: Store.sync() method have success and failure property

Sencha 6.5, where classic and modern folders while create new packages

半城伤御伤魂 提交于 2021-01-27 12:39:55
问题 I was trying sencha 6.5, I've created a package using sencha generate package DemoPkg This has created a package for me, but I do not find directories for classic and modern inside it. Did anyone faced this issue? Any suggestion or help on this will be much appreciated. As per sencha guide the structure of package should have following structure, packages/ local/ foo/ # Top-level folder for the package .sencha/ package/ sencha.cfg # Sencha Cmd configuration for this package build-impl.xml #

How to build ExtJS app into .js file, not inside index.html?

[亡魂溺海] 提交于 2021-01-25 06:35:39
问题 I have Ext JS app (5.0, MVC) which need to be placed inside DIV container in HTML page. Everything works in development environment, but i can't understand how to use sencha cmd to build it, because build process generates "launcher" code and places it inside index.html When i copy/paste builded JS code into my template - it works fine. So, question is: can i somehow redirect build JS output into .js file, which i'll include (with <source>) in my HTML, so i'll do not need to copy/paste JS

How to build ExtJS app into .js file, not inside index.html?

淺唱寂寞╮ 提交于 2021-01-25 06:34:32
问题 I have Ext JS app (5.0, MVC) which need to be placed inside DIV container in HTML page. Everything works in development environment, but i can't understand how to use sencha cmd to build it, because build process generates "launcher" code and places it inside index.html When i copy/paste builded JS code into my template - it works fine. So, question is: can i somehow redirect build JS output into .js file, which i'll include (with <source>) in my HTML, so i'll do not need to copy/paste JS

How to build ExtJS app into .js file, not inside index.html?

拈花ヽ惹草 提交于 2021-01-25 06:33:10
问题 I have Ext JS app (5.0, MVC) which need to be placed inside DIV container in HTML page. Everything works in development environment, but i can't understand how to use sencha cmd to build it, because build process generates "launcher" code and places it inside index.html When i copy/paste builded JS code into my template - it works fine. So, question is: can i somehow redirect build JS output into .js file, which i'll include (with <source>) in my HTML, so i'll do not need to copy/paste JS