Skip to content

Instantly share code, notes, and snippets.

View ExtAnimal's full-sized avatar

Nige White ExtAnimal

  • Animal Software SAS
  • Lavercantière, 46340, France
View GitHub Profile
@ExtAnimal
ExtAnimal / gist:6038943
Created July 19, 2013 13:00
Overnesting highlighter
javascript:(Ext.ComponentManager.each(function(c) {
c = Ext.getCmp(c);
if (c.isContainer && !c.isHeader && !c.isXType('tablepanel') && !c.isXType('headercontainer') && !c.hasCls('x-fieldset-header') && c.items.items.length === 1) {
console.log(c.id + ' only contains 1 child: check for overnesting');
c.rendered && c.el.frame('red');
}
}));
/**
* Text Field {@link Ext.field.Text#triggers trigger} widget.
*/
Ext.define('Ext.field.trigger.Trigger', {
extend: 'Ext.Widget',
xtype: 'trigger',
alias: 'trigger.trigger',
requires: [
'Ext.util.ClickRepeater'
/**
* This shows an example of a common "Contact Us" form in a popup window. The form uses
* vbox and hbox layouts to achieve a uniform flexible layout even when the window is
* resized.
*
* Note that Tab based navigation within the modal window is confined to within the window.
*/
Ext.define('KitchenSink.view.forms.ContactForm', {
extend: 'Ext.form.Panel',
xtype: 'form-contact',