1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default customize field label

    customize field label


    how can i add a image to field label and make it receiving click event?

  2. #2
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    Help!

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Add a click event listener to the holding container and simle check if the target was the label.

  4. #4
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    This is my code:

    public class OnlineHelpTextField<T> extends TextField<T>
    {
    public OnlineHelpTextField()
    {
    addListener(Events.OnClick, new Listener<DomEvent>()
    {
    @Override
    public void handleEvent(DomEvent domEvent) {
    MessageBox.alert("source", domEvent.getSource().getClass().toString(), null);
    MessageBox.alert("target", domEvent.getTarget().getString(), null);
    }
    });
    }

    public void setFieldLabel(String label)
    {
    Image img = new Image("img/hd/helptool-icon-thumb.png");
    img.addClickHandler(new ClickHandler()
    {
    @Override
    public void onClick(ClickEvent clickEvent) {
    Info.display("Help", "Say something");
    }
    });
    String l = label + img.getElement().getString();
    super.setFieldLabel(l);
    }
    }
    source and target are also this Field NOT label or img. So it does not work.

    Any suggestion?

  5. #5
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    Simply, I want a field with '?' icon after label or after field or somewhere others to support online help. Maybe somebody has a solution.

    Please help me. Thanks!

  6. #6
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    waiting...

  7. #7
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    you may try to use a plugin like in here:
    http://www.extjs.com/examples-dev/ex...tml#customform

  8. #8
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    Still a static example. I need event listener.

  9. #9
    Ext User
    Join Date
    Oct 2008
    Posts
    33
    Vote Rating
    0
    taocore is on a distinguished road

      0  

    Default


    Too bad.

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..."