How to fire mousedown event programatically?
I have a formpanel and some fields inside it.
I'm registering a mousedown event for form which shows a border to the field. When a mousedown is happening for the otherfield then i'm removing the existing field border and applying it to the current field for which mousedown occured.
For this form I'm adding the fields dynamically.
Now for the newly added field i want to show the border i.e., i want to fire the mousedown event programatically.
Can you please suggest how can i achieve?
Why you dont call the function, which adds the border after you added a new field?
I'm using a userdefined plugin which shows the div element around the field when a mousedown fires on form.body
You can get plugins with form.getPlugin('id');
Then you could call the function, which fires the event. But why? xD
This function would also call the function which adds a border to your field... so why not directly call the function? o.O
Or am I misunderstanding something? :x
Tags for this Thread