1. #1
    Sencha User halogen's Avatar
    Join Date
    Jun 2012
    Posts
    11
    Vote Rating
    0
    halogen is on a distinguished road

      0  

    Default Answered: Labels for "custom" form fields

    Answered: Labels for "custom" form fields


    I want to make a form field that functions mostly like a slider or spinner: the user can select an integer from 1-6. However, it should appear as a row of 6 buttons side-by-side, each labeled with its numerical value. So instead of moving a circle to an unlabeled position on a number line, you click the number you want.

    I could put an hbox panel inside the fieldset and put the buttons inside that panel, but that wouldn't let me give it a label consistent with the other labels in the form.

    Is there any way to create this kind of "custom" field and have it behave like other fields, especially in terms of how it is labeled?

    This question is generalized to all custom fields, not just the specific example of the row of buttons, because I have other "custom" fields that I'd like to put in my form.

  2. Have you seen this thread?

    http://www.sencha.com/forum/showthread.php?219848-Ext.tux.form.FieldContainer-Create-complex-form-fields

    If I am reading your comment correctly, maybe that can help you out

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    I just use something like this:
    Code:
    {
    	xtype: 'sliderfield',
    	label: 'Value: 50',
    	value: 50,
    	minValue: 0,
    	maxValue: 100,
    	listeners: {
    		drag: function(me){
    			me.setLabel('Value: ' + me.getValue());
    		}
    	}
    }

  4. #3
    Sencha User halogen's Avatar
    Join Date
    Jun 2012
    Posts
    11
    Vote Rating
    0
    halogen is on a distinguished road

      0  

    Default


    I'll do that if I can't figure out how to make the row of number buttons, but I prefer the look of the number buttons and the solution I use would also help for other "custom" fields that have no way of being functionally replicated by existing fields. (Since this question is generalized to all fields that would basically be built by hbox panels within fieldsets, not just the number picker.)

  5. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Have you seen this thread?

    http://www.sencha.com/forum/showthread.php?219848-Ext.tux.form.FieldContainer-Create-complex-form-fields

    If I am reading your comment correctly, maybe that can help you out

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