1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    pkeersbulik is on a distinguished road

      0  

    Default Is there a way to listen any DOM change of an Element ?

    Is there a way to listen any DOM change of an Element ?


    Hello

    I have to synchronise the position of a button with a kind of overlay. When position change, the overlay have to move with the button.
    is there any way to listen to button move? the move event is not "the solution" because, when i add another button in a toolbar , the first button position is shifted but there is no 'move' event raised.

    So i want to try to listen DOM change to be aware of the button position change. is there any way to do that ?

    Thanks a lot.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi pkeersbuilk,

    You can add custom event into your button and use them what you want.
    For more info read API docs- http://docs.sencha.com/ext-js/3-4/#!...thod-addEvents
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    pkeersbulik is on a distinguished road

      0  

    Default


    Thanks for your answer.
    But no i can't do that because i want to be notify on every component move. if offset change i want to be informed.

    For example, if i collapse a panel , i want to be notified if my component is masked or has moved

Thread Participants: 1