PDA

View Full Version : TriggerFields



mihaip007
26 Jun 2010, 2:03 AM
Hi there...!

Is there any way to have TriggerFields in ExtDesigner? Or is there any way to create a form in ExtDesigner and then by using a script add a triggerfield to the form?

Thanks...
Mihai

jarrednicholls
28 Jun 2010, 5:57 AM
Hi Mihai,

The next release of the Designer offers the TriggerField component, and it will be released very soon. In the meantime, you can certainly add the TriggerField at runtime within your implementation class' initComponent function (the exported .js file, not the .ui.js file). e.g.:



var index = 3;
// ...
MyViewport = Ext.extend(MyViewportUi, {
initComponent: function(){
MyViewport.superclass.initComponent.call(this);

this.myForm.insert(index, {
xtype: 'trigger'
});
}
});

mihaip007
29 Jun 2010, 9:53 AM
You are the bearer of great news! :)
If I may add - thank you for all the support and help you have given us since ExtDesigner became available.

You rock :)

jarrednicholls
29 Jun 2010, 9:58 AM
I appreciate the kind words Mihai! Thanks!