Threaded View

  1. #1
    Sencha Premium Member
    Join Date
    May 2008
    Location
    Pasadena, California
    Posts
    172
    Answers
    27
    Vote Rating
    2
    NickT is on a distinguished road

      0  

    Default Answered: checkbox renderTpl

    Answered: checkbox renderTpl


    Hello,
    I was altering the checkbox to appear more like a natural checkbox in sencha touch 1.1 by adding this to checkbox config

    Code:
        baseCls: 'x-plain',    renderTpl: [
            '<tpl if="fieldEl"><input id="{inputId}" type="{inputType}" name="{name}" class="{fieldCls}" tabIndex="-1" ',
            '<tpl if="checked"> checked </tpl>',
            ' value="{inputValue}">&nbsp;{label}</input>',
            '</tpl>'
        ],
    this no longer works in 2.0. Can you advise as to what I can do in 2.0 to style the checkbox?

    thanks

  2. The underlying HTML for the component actually uses a <input type="checkbox" /> tag.

    The main CSS override you will need is below. However there are many other things you will need to add to make it look 'correct' in all devices.

    Code:
    .x-input-checkbox {
        -webkit-appearance: checkbox;
    }

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..." hd porno faketaxi