Results 1 to 4 of 4

Thread: How to fire mousedown event programatically?

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    1
    Vote Rating
    3
      0  

    Default 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
      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
    81
    Answers
    1
    Vote Rating
    3
      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
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •