-
Ext.Component
- config
- id, itemId
- margin, padding
- width, height, minWidth, minHeight, maxWidth, maxHeight
- autoScroll
- cls, style, baseCls
- border, frame
- hidden, hideMode
- disabled, disabledCls
- autoEl
- tpl
- stateful, stateId
- method
- disable(), enable()
- custom component
- config
-
Form fields
- config
- name
- fieldLabel, fieldStyle, fieldCls
- labelWidth, labelAlign, labelCls, labelStyle, labelSeparator
- hideEmptyLabel, hideLabel
- readOnly, readOnlyCls, disabled, disabledCls, emptyCls, emptyText, dirtyCls
- originalValue, isDirty(), dirtyCls
- enforceMaxLength
- enableKeyEvents
- submitValue
- formBind
- Validation text & class
- vtype
- validator
- allowBlank
- msgTarget
- blankText, invalidText, invalidCls
- methods
- getValue(), getRawValue()
- getActiveErrors(), setActiveErrors(), getErrors(), markInvalid()
- isValid(), clearInvalid()
- checkChange(), checkDirty(), isDirty(), resetOriginalValue()
- rawToValue(), valueToRaw()
- config
-
Containers: container, panel, window, form, tab, fieldset, fieldcontainer
- config
- bubbleEvents
- defaults, defaultType
- items
- layout
- method
- add(), remove(), removeAll
- child(), down()
- config
-
Form
- method
- getValues()
- isDirty(), isValid()
- load(), submit(), loadRecord(), getRecord()
- getForm()
- Basic
- getFieldValues(), getValues()
- findField(), getFields()
- isDirty(), isValid()
- checkDirty(), checkValidity(), clearInvalid(), markInvalid()
- load(), submit(), loadRecord(), getRecord(), setValues()
- method
-
Data Package
-
Ext.data.Store
- fields: name, type
- model
- each(), getAt()
- getCount(), getTotalCount()
-
Ext.data.Model
- fields, idProperty
- get()
- isModified()
- commit(), reject()
- validations
- validate(), isValid(), dirty
-
Ext.data.proxy.Proxy
- url
- api
- timeout: global setting
- extraParams
- limitParam, pageParam etc.
- reader
-
Ext.data.reader.Json
- successProperty, totalProperty, root
-
Sample
me.store = new Ext.data.Store({ proxy: { type: 'ajax', url: 'path/getUserAccountBalances', extraParams: { userId: me.getUserId() }, reader: { type: 'json', root: 'items' } }, fields: [ {name: 'CURRENCY'}, {name: 'CURRENCYBALANCE', type : 'float'}, {name: 'DEFAULT', type: 'boolean'} ], listeners: { load: function(s, records, success) { } } });
-
-
Grid
- column
- text, dataIndex, renderer
- viewConfig
- trackOver, enableTextSelection, markDirty, stripeRows
- column
-
ComboBox
- store
- listConfig
- width, height, minWidth, maxWidth, minHeight, maxHeight
- itemSelector, getInnerTpl
-
View
-
Tree/Time
-
Events
- listeners : { }
- addListener(), on()
- addManagedListener(), mon()
- removeListener(), removeManagedListener(), un(), mun()
- fireEvent(), fireEventArgs()
-
Component Query
- CSS selector
- method
- container: down(), child(), query()
- Component: up(), nextSibling(), nextNode(), previousSibling(), previousNode()
- syntax
- itemId: #
- xtype: xtype
- property: xtype[property=""]
- http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ComponentQuery
- performance
- do not use it in a loop
- cache the result
-
SenchaMVC
-
resources