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

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