Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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