1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    37
    Vote Rating
    1
    Voyd is on a distinguished road

      0  

    Default Unanswered: Checkbox inside a button

    Unanswered: Checkbox inside a button


    I was wondering if there was a way to insert a check box inside of a button. My user likes the idea of a toggle button but thinks it isn't as intuitive as a checkbox. So of course their solution, a toggle button with a title text and when toggled, not only selects itself, but checks the check box inside of it. Any ideas?

    ---------------------------
    | | | | | | | | | | | | | | | |
    | click me [X] | | | |
    | | | | | | | | | | | | | | | |
    ---------------------------

  2. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    You can use iconCls ( or cls or preseedCls) for this purpose.

  3. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    here is the solution. you will need to adjust it a little to make it look better.

    Code:
                {
                        xtype: 'button',
                        height: 20,
                        width: 100,
                        html: 'text <input type="checkbox" />',
                        enableToggle: true,
                        toggleHandler: function(button, state)
                            {
                                if(state)
                                    button.update('text <input type="checkbox" checked="checked" />');
                                else
                                    button.update('text <input type="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