1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    BrunoSales is on a distinguished road

      0  

    Question Answered: Property handleMouseEvents, but for the click event

    Answered: Property handleMouseEvents, but for the click event


    Hi,

    I need to disable the style of the click event, because the button will only serve to tooltip. I know for the event mouseover, mouseout and mousedown has the property handleMouseEvents.

    Thankz.

  2. This works :
    Code:
            Ext.create('Ext.Button', {
                text: 'Click me',
                focusCls: "",
                overCls: "",
                pressedCls: "",
                handler: function() {},
                renderTo: Ext.getBody(),
            });
    http://jsfiddle.net/serju/JxwdX/2/

  3. #2
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    There is pressedCls property
    Code:
            Ext.create('Ext.Button', {
                text: 'Click me',
                renderTo: Ext.getBody(),
                handler: function() {
                },
                pressedCls: ""
            });

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    BrunoSales is on a distinguished road

      0  

    Question


    Yes, but what class I need to use to cause any effect on click event?

  5. #4
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    I set an empty class here, so there will be no effects!
    Code:
    pressedCls: ""
    http://jsfiddle.net/serju/JxwdX/ --> no click effects here

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    BrunoSales is on a distinguished road

      0  

    Default


    I noticed that when I put together the property 'handleMouseEvents: false" does not work.

  7. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    BrunoSales is on a distinguished road

      0  

    Default


    Code:
            Ext.create('Ext.Button', {
                text: 'Click me',
                handleMouseEvents: false,
                renderTo: Ext.getBody(),
                handler: function() {},
                pressedCls: ""
            });

  8. #7
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    This works :
    Code:
            Ext.create('Ext.Button', {
                text: 'Click me',
                focusCls: "",
                overCls: "",
                pressedCls: "",
                handler: function() {},
                renderTo: Ext.getBody(),
            });
    http://jsfiddle.net/serju/JxwdX/2/

  9. #8
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    BrunoSales is on a distinguished road

      0  

    Exclamation


    Now it worked, thanks for the help.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi