1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    7
    Answers
    3
    Vote Rating
    0
    juworld is on a distinguished road

      0  

    Default Unanswered: How to skin radio button field?

    Unanswered: How to skin radio button field?


    I need to add an extra "sub-label" to the radio button field. How would I go about doing that?

    When I use the radio field, it gives me a chance to set the label very nicely. However, I also want to have a "sub-label" under the main label to provide more information.

    How are my options? Should I create a custom radio by extending ext.field.radio and try to add a sub-label? (is there an easy to follow example to do this?)

    Thanks in advance!

    Justin

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    7
    Answers
    3
    Vote Rating
    0
    juworld is on a distinguished road

      0  

    Default


    So, I was able to create a new radio button class to do this:
    Code:
    Ext.define('GS.view.formfields.Radio', {
        extend: "Ext.field.Radio",
    
    
        xtype: 'formfieldsradio',
    
    
        getElementConfig: function() {
            var prefix = Ext.baseCSSPrefix;
    
    
            return {
                reference: 'element',
                className: 'x-container',
                children: [
                    {
                        reference: 'label',
                        cls: prefix + 'form-label',
                        children: [{
                            reference: 'labelspan',
                        },
                        {
                            reference: 'sublabelspan',
                            style: 'font-size: 0.75em',
                            html: 'hi'
                        }]
                    },
                    {
                        reference: 'innerElement',
                        cls: prefix + 'component-outer'
                    }
                ]
            };
        },
    });
    But, is there a more elegant way to do this?

    Thanks in advance,

    Justin

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