1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    3
    Vote Rating
    0
    ilkin is on a distinguished road

      0  

    Post HOWTO: Display a Button as Link for GXT 1.x

    HOWTO: Display a Button as Link for GXT 1.x


    if you have a button but need to display it as a normal link:




    usage:

    Code:
    Button button1 = new Button("Search 1", new SelectionListener<ButtonEvent>() {
    
                @Override
                public void componentSelected(ButtonEvent ce) {
                    // do something
                }
            });
            Button button2 = new Button("Search 2", new SelectionListener<ButtonEvent>() {
    
                @Override
                public void componentSelected(ButtonEvent ce) {
                    // do something
                }
            });
    
            // style the second button as a link:
            button2.addStyleName("button-link");
    you need to add this css:
    Code:
    /* Button as link --*/
    .button-link .x-btn-text{
        cursor: pointer !important;
        cursor: hand !important;
        border: none !important;
        /* Disable the button-style */
        background-color: transparent !important;
        background:none !important;
        background-image:none !important;
        padding: 0px !important;
        color: #4784C3 !important;
        text-decoration: underline !important;
        
    
    }
    
     /* remove images */
     
    .button-link .x-btn-left,
    .button-link .x-btn-center,
    .button-link .x-btn-right {
        background-image: none !important;
    }
    
    /* remove little dots in FF */
    
    .button-link .x-btn-left i,
    .button-link .x-btn-cener i,
    .button-link .x-btn-right i{
        font-size: 0px;
    } 
     /* Button as link */
    •••••••••••••••
    Ilkin Ashrafli
    SCJP

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    dont forget this credits


    this is based on this posting:

    HOWTO: Display a Button as Link (for GXT 2.0) by Arno.Nyhm
    http://www.extjs.com/forum/showthrea...849#post407849
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    1
    Vote Rating
    0
    abs2010 is on a distinguished road

      0  

    Default


    thanks, this is indeed a good example

Thread Participants: 2

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