Sencha Ext JS 7.7 is Here – Discover What’s New and Exciting – LEARN MORE

Top Support Tips: September 2013

September 12, 2013 107 Views

Battling Compression (Sencha Cmd + Ext JS)

There may be a situation in which an Ext JS user would like to create an uncompressed production build. Luckily, this is quite simple to do.

Just open your configuration, located here:


Once there, you can modify several compression settings.

To disable YUI compression change:


To disable CSS compression change:


You can read more about customizing Sencha Cmd options here:!/guide/command_advanced

Trigger Happy (Ext JS)

Co-author: Seth Lemmons

The triggerfield allows you to specify one or more trigger ‘buttons’ to the side of any form field. The most common implementation is to use triggerCls to specify the look of the trigger. Then, you can use onTriggerClick to dictate an action to take on trigger click.

You can also add multiple triggers using the syntax of: trigger_Cls where ‘_’ is the count of the trigger. Internally, triggerCls is translated to trigger1Cls, so the count starts with 1 and each additional trigger will increment starting with trigger2Cls.

The same incrementing schema applies to the method used as the trigger action. Any subsequent trigger can have a corresponding onTrigger_Click. So, a triggerfield with two triggers would look something like:
Ext.define(‘Ext.ux.CustomTrigger’, {
extend: ‘Ext.form.field.Trigger’,
alias: ‘widget.customtrigger’,
triggerCls: ‘x-form-trigger’, // the default
trigger2Cls: ‘x-form-clear-trigger’,
// override onTriggerClick
onTriggerClick: function () {
Ext.Msg.alert(‘Status’, ‘You clicked my trigger!’);
onTrigger2Click: function () {

Ext.create(‘Ext.form.FormPanel’, {
title: ‘Form with TriggerField’,
bodyPadding: 5,
width: 350,
renderTo: Ext.getBody(),
items: [{
xtype: ‘customtrigger’,
fieldLabel: ‘Sample Trigger’,
emptyText: ‘click the trigger’
}] });

You can read more about Field Triggers here:!/api/Ext.form.field.Trigger

Sencha Touch and Chrome 29

As many of you may have noticed, the release of Chrome 29 introduced a few unwanted “style” changes to Sencha Touch. If you were unaware of these changes, or haven’t looked at your app in Chrome for a while, you may want to go take a peek. I’ll wait. OK, you’re back. Calm down! We have released a patched version of Sencha Touch 2.2.1, which fixes the issues that Chrome’s recent flex layout changes have introduced.

You can download the GPL version from our product page here:

We have also added updated builds to the Support Portal and the public CDN link has been changed as well.

coming soon

Something Awesome Is