PDA

View Full Version : Advise me



pav-pas
28 Aug 2010, 12:03 AM
How to start learning how to write components / plug-ins, a reference to tell me?
Since the general structure of the class definition


? ???? ?????? ???????? ??? ?????? ??????????/???????, ?????? ?? ????????? ????????
? ????? ?????????? ???????? ??????

mayurid
28 Aug 2010, 2:01 AM
Id like to get this finished object object within the object that is to replace the Ext.getCmp('user_grid') or to obtain an object reference?

this.id does not exist




Ext.ns('Application');

var childWin;

Application.userGrid = Ext.extend(Ext.grid.GridPanel, {

//id: 'user_grid',

initComponent : function() {

var config = {

store: new Ext.data.Store({
reader: new Ext.data.JsonReader({
fields: ['id',
'login'
],
root: 'rows'
}),
proxy: new Ext.data.HttpProxy({
url: this.httpGrid
}),
autoLoad: true/*,
listeners:{
beforeload: function(){myMask.show()},
load: function(){myMask.hide()}
} */
}),
columns: [
{id:'id', dataIndex: 'id', hidden:true, hideable:false},
{id:'login', header: "login", width: 50, sortable: true, dataIndex: 'login'}
Ext.util.Format.dateRenderer('d/m/Y')}
],
sm: new Ext.grid.RowSelectionModel({
listeners: {
rowselect: function(){
rowSel('onn',Ext.getCmp('user_grid').getSelectionModel().getSelected(),'on_user','off_user');
rowSess(Ext.getCmp('user_grid').getSelectionModel().getSelected(),'del_session');
}
}
}),

.............................


Advise me where to read, to build components/plugins, where to start?

describing the overall structure of class


cant understand your question please describe it properly

Animal
28 Aug 2010, 4:47 AM
Use your native language. There are a lot of Russian ExtJS experts around here!