ext ownerct

Ext.onReady (function () (
var win = new Ext.Window ((
title:”test”,
layout:” form “,
width:300,
plain:true,
items:(
xtype:” textfield “, / / xtype is that I am going to build a container to tell what kind of components
fieldLabel:”name”
),
buttons:[(
text:”determined”,
handler:function () (
/ / alert (this.text); / / this .text that the current button
alert (this.ownerCt.title);
/ / how can access to the value ah
)
)]
));
win.show ();
));

this.ownerCt.title What is this ?
If a component is, to give it a value of the id, and then use Ext.get (id) will be able to access the object.and then it is little point

Leave a Reply