1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2
    Vote Rating
    0
    bimargulies is on a distinguished road

      0  

    Default Answered: My checkboxes don't render as checkboxes

    Answered: My checkboxes don't render as checkboxes


    The following code sets up a form with nothing in it but a checkbox group.

    Code:
    Ext.define('WD40.view.Legend', {
        extend: 'Ext.panel.Panel',
        alias: 'widget.wd40legend',
        layout: 'vbox',
        items: [
             {
                xtype: 'form',
                width: '100%',
                id: 'documentLanguageTable',
                title: "Language",
                items: [ {
                    xtype: 'checkboxgroup',
                    columns: 1,
                    vertical: true,
                    id: 'documentLanguageCheckboxes'
                }]
            }
        ]
    Later, I add checkbox items with .add. Each checkbox item is rendered as a div with no checkbox element in it.

    Code:
    <div class="x-panel x-panel-default" id="lang-check-SPANISH" style="width: 169px; height: 2px; ">
      <div id="lang-check-SPANISH-body" class="x-panel-body x-panel-body-default x-panel-body-default" style="width: 169px; left: 0px; top: 0px; height: 2px; ">
       <div id="lang-check-SPANISH-clearEl" class="x-clear" role="presentation">
      </div></div></div>
    The code to add the items looks like:

    Code:
    langTable.add([
                        {   boxLabel  : langName + " (" + langData.count + ")",
                            name      : langName,
                            id        : 'lang-check-' + langName
                        }
                    ]);
    What do I need to do to actually get some checkboxes?

  2. The code above added the checkboxes as siblings of the group, not children.

  3. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2
    Vote Rating
    0
    bimargulies is on a distinguished road

      0  

    Default oops

    oops


    The code above added the checkboxes as siblings of the group, not children.

Tags for this Thread

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