1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    43
    Vote Rating
    0
    pk.hafeez is on a distinguished road

      0  

    Wink Unanswered: How to add a field labelt to slider in the package com.sencha.gxt.widget.core.client.

    Unanswered: How to add a field labelt to slider in the package com.sencha.gxt.widget.core.client.


    Im new to ext gwt. Im trying out gwt 3.0 beta version. I have added a slider but not finding how to add field label to the slider. i have used setname method but that doesnt do.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,639
    Answers
    107
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    The setName method, as the javadoc implies (see com.google.gwt.user.client.ui.HasName) only modifies the html attribute called name, not the label.

    Take a look at form examples http://www.sencha.com/examples-dev/#...e:formsexample and associated source - wrap the field in a FieldLabel before adding it to its parent:

    Code:
        Slider slider = new Slider();
        slider.setMinValue(40);
        slider.setMaxValue(90);
        slider.setValue(0);
        slider.setIncrement(5);
        slider.setMessage("{0} inches tall");
        p.add(new FieldLabel(slider, "Size"), new VerticalLayoutData(1, -1));

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    43
    Vote Rating
    0
    pk.hafeez is on a distinguished road

      0  

    Default


    Thanks ! That works !

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar