1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Unanswered: How to fire mousedown event programatically?

    Unanswered: How to fire mousedown event programatically?


    Hi All,

    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?


    Regards
    URL

  2. #2
    Sencha User Arg0n's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    122
    Answers
    12
    Vote Rating
    16
    Arg0n will become famous soon enough Arg0n will become famous soon enough

      0  

    Default


    Why you dont call the function, which adds the border after you added a new field?

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default


    I'm using a userdefined plugin which shows the div element around the field when a mousedown fires on form.body

  4. #4
    Sencha User Arg0n's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    122
    Answers
    12
    Vote Rating
    16
    Arg0n will become famous soon enough Arg0n will become famous soon enough

      0  

    Default


    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

Thread Participants: 1

Tags for this Thread